forked from pyrite-dev/milsko
MwLLDoModern
This commit is contained in:
parent
b4829308d9
commit
2323b7f69f
11 changed files with 39 additions and 5 deletions
|
|
@ -56,6 +56,6 @@
|
|||
MwLLGetScreenSize = MwLLGetScreenSizeImpl; \
|
||||
\
|
||||
MwLLSetDarkTheme = MwLLSetDarkThemeImpl; \
|
||||
\
|
||||
MwLLDoModern = MwLLDoModernImpl; \
|
||||
return 0; \
|
||||
}
|
||||
|
|
|
|||
|
|
@ -340,6 +340,11 @@ static void MwLLSetDarkThemeImpl(MwLL handle, int toggle) {
|
|||
(void)toggle;
|
||||
}
|
||||
|
||||
static MwBool MwLLDoModernImpl(MwLL handle) {
|
||||
(void)handle;
|
||||
return MwFALSE;
|
||||
}
|
||||
|
||||
static int MwLLClassicMacOSCallInitImpl(void) {
|
||||
InitGraf(&qd.thePort);
|
||||
InitFonts();
|
||||
|
|
|
|||
|
|
@ -1156,6 +1156,11 @@ static void MwLLSetDarkThemeImpl(MwLL handle, int toggle) {
|
|||
(void)toggle;
|
||||
}
|
||||
|
||||
static MwBool MwLLDoModernImpl(MwLL handle) {
|
||||
(void)handle;
|
||||
return MwTRUE;
|
||||
}
|
||||
|
||||
static int MwLLCocoaCallInitImpl(void) {
|
||||
#ifndef __APPLE__
|
||||
printf("Using GNUStep Backend\n");
|
||||
|
|
|
|||
|
|
@ -839,6 +839,11 @@ static void MwLLSetDarkThemeImpl(MwLL handle, int toggle) {
|
|||
DwmSetWindowAttribute(handle->gdi.hWnd, 20, &v, sizeof(v));
|
||||
}
|
||||
|
||||
static MwBool MwLLDoModernImpl(MwLL handle) {
|
||||
(void)handle;
|
||||
return MwTRUE;
|
||||
}
|
||||
|
||||
static int MwLLGDICallInitImpl(void) {
|
||||
memset(&wsymtbl, 0, sizeof(wsymtbl));
|
||||
|
||||
|
|
|
|||
|
|
@ -2851,5 +2851,10 @@ static int MwLLWaylandCallInitImpl(void) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
static MwBool MwLLDoModernImpl(MwLL handle) {
|
||||
(void)handle;
|
||||
return MwTRUE;
|
||||
}
|
||||
|
||||
#include "call.c"
|
||||
CALL(Wayland);
|
||||
|
|
|
|||
|
|
@ -1449,5 +1449,10 @@ static int MwLLX11CallInitImpl(void) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static MwBool MwLLDoModernImpl(MwLL handle) {
|
||||
(void)handle;
|
||||
return MwTRUE;
|
||||
}
|
||||
|
||||
#include "call.c"
|
||||
CALL(X11);
|
||||
|
|
|
|||
|
|
@ -674,7 +674,7 @@ int MwGetInteger(MwWidget handle, const char* key) {
|
|||
#ifdef USE_CLASSIC_THEME
|
||||
if(strcmp(key, MwNmodernLook) == 0) return inherit_integer(handle, key, 0);
|
||||
#else
|
||||
if(strcmp(key, MwNmodernLook) == 0) return inherit_integer(handle, key, 1);
|
||||
if(strcmp(key, MwNmodernLook) == 0) return inherit_integer(handle, key, MwLLDoModern(handle->lowlevel));
|
||||
#endif
|
||||
if(strcmp(key, MwNdarkTheme) == 0) return inherit_integer(handle, key, 0);
|
||||
if(strcmp(key, MwNuseMonospace) == 0) return inherit_integer(handle, key, 0);
|
||||
|
|
|
|||
|
|
@ -53,6 +53,8 @@ void (*MwLLGetScreenSize)(MwLL handle, MwRect* rect) = NULL;
|
|||
|
||||
void (*MwLLSetDarkTheme)(MwLL handle, int toggle) = NULL;
|
||||
|
||||
MwBool (*MwLLDoModern)(MwLL handle) = NULL;
|
||||
|
||||
void MwLLCreateCommon(MwLL handle) {
|
||||
handle->common.handler = malloc(sizeof(*handle->common.handler));
|
||||
memset(handle->common.handler, 0, sizeof(*handle->common.handler));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue