add clock icon

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@659 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-10 09:20:52 +00:00
parent 98f4c4b03d
commit c81dc334b0
7 changed files with 2323 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ void spawn3(MwWidget handle, void* user, void* call) {
(void)handle;
(void)call;
for(i = 0; i <= 5; i++) {
for(i = 0; i <= MwMB_ICONCLOCK; i++) {
MwWidget mb = MwMessageBox(user, "messagebox test", "title", i | MwMB_BUTTONOK);
MwAddUserHandler(MwMessageBoxGetChild(mb, MwMB_BUTTONOK), MwNactivateHandler, ok, mb);
}

View File

@@ -56,7 +56,8 @@ enum MwMB_ICON {
MwMB_ICONINFO,
MwMB_ICONNOTE,
MwMB_ICONNEWS,
MwMB_ICONERROR
MwMB_ICONERROR,
MwMB_ICONCLOCK
};
/*!

View File

@@ -17,6 +17,11 @@ extern "C" {
*/
MWDECL unsigned int MwIconBack[];
/*!
* @brief Clock icon
*/
MWDECL unsigned int MwIconClock[];
/*!
* @brief Computer icon
*/

BIN
resource/icon/clock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@@ -80,6 +80,10 @@ MwWidget MwMessageBox(MwWidget handle, const char* text, const char* title, unsi
data = MwIconError;
break;
}
case MwMB_ICONCLOCK: {
data = MwIconClock;
break;
}
}
px = MwLoadIcon(icon, data);

2310
src/icon/clock.c generated Normal file

File diff suppressed because it is too large Load Diff

2
src/icon/search.c generated
View File

@@ -1,4 +1,4 @@
/* $Id: icon.sh 588 2025-11-04 02:18:33Z nishi $ */
/* $Id: icon.sh 589 2025-11-04 02:34:16Z nishi $ */
#include <Mw/Milsko.h>
unsigned int MwIconSearch[] = {