dark theme

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@494 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-25 18:10:23 +00:00
parent 1ba8b118dd
commit 83ece5406f
8 changed files with 81 additions and 19 deletions

View File

@@ -272,6 +272,13 @@ MWDECL void MwGrabPointer(MwWidget handle, int toggle);
*/
MWDECL void MwHideCursor(MwWidget handle);
/*!
* %param Toggles the dark theme
* %param handle Widget
* %param toggle Toggle
*/
MWDECL void MwToggleDarkTheme(MwWidget handle, int toggle);
#ifdef __cplusplus
}
#endif

View File

@@ -23,6 +23,16 @@ MWDECL const char* MwDefaultBackground;
*/
MWDECL const char* MwDefaultForeground;
/*!
* %brief Default dark theme background color
*/
MWDECL const char* MwDefaultDarkBackground;
/*!
* %brief Default dark theme foreground color
*/
MWDECL const char* MwDefaultDarkForeground;
/*!
* %brief Gets default border width
* %param handle Widget

View File

@@ -90,6 +90,7 @@ struct _MwVoidKeyValue {
struct _MwWidget {
char* name;
MwLLColor bgcolor;
int dark_theme;
MwLL lowlevel;
MwWidget parent;