This commit is contained in:
parent
56544212b1
commit
5ff8d9a6f1
1 changed files with 2 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ static void lldarkthemehandler(MwLL handle, void* data) {
|
||||||
int* ptr = data;
|
int* ptr = data;
|
||||||
int s;
|
int s;
|
||||||
|
|
||||||
if(IsFirstVisible(h) && (shgeti(h->integer, MwNdarkTheme) == -1 || ((s = MwGetInteger(h, MwNdarkThemeAutomatic)) != MwDEFAULT && s))) {
|
if(h->widget_class == MwWindowClass && (shgeti(h->integer, MwNdarkTheme) == -1 || ((s = MwGetInteger(h, MwNdarkThemeAutomatic)) != MwDEFAULT && s))) {
|
||||||
if(MwGetInteger(h, MwNmodernLook)) {
|
if(MwGetInteger(h, MwNmodernLook)) {
|
||||||
MwVaApply(h,
|
MwVaApply(h,
|
||||||
MwNdarkTheme, *ptr,
|
MwNdarkTheme, *ptr,
|
||||||
|
|
@ -585,7 +585,7 @@ void MwSetInteger(MwWidget handle, const char* key, int n) {
|
||||||
|
|
||||||
shdel(h->integer, MwNdarkThemeAutomatic);
|
shdel(h->integer, MwNdarkThemeAutomatic);
|
||||||
|
|
||||||
while(h->parent != NULL && h->parent->widget_class != NULL) h = h->parent;
|
while(h->parent != NULL && h->parent->widget_class != MwWindowClass) h = h->parent;
|
||||||
|
|
||||||
MwLLSetDarkTheme(h->lowlevel, n);
|
MwLLSetDarkTheme(h->lowlevel, n);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue