Theme loading fixed.
This commit is contained in:
parent
0a36dbe09e
commit
d3bafd26b4
1 changed files with 12 additions and 1 deletions
13
dvx/dvxApp.c
13
dvx/dvxApp.c
|
|
@ -1597,7 +1597,18 @@ void dvxApplyColorScheme(AppContextT *ctx) {
|
|||
ctx->cursorFg = ctx->colors.cursorFg;
|
||||
ctx->cursorBg = ctx->colors.cursorBg;
|
||||
|
||||
// Repaint everything
|
||||
// Repaint all windows with new colors
|
||||
for (int32_t i = 0; i < ctx->stack.count; i++) {
|
||||
WindowT *win = ctx->stack.windows[i];
|
||||
|
||||
if (win->widgetRoot) {
|
||||
wgtInvalidate(win->widgetRoot);
|
||||
} else {
|
||||
dvxInvalidateWindow(ctx, win);
|
||||
}
|
||||
}
|
||||
|
||||
// Repaint desktop area too (wallpaper/background between windows)
|
||||
dirtyListAdd(&ctx->dirty, 0, 0, d->width, d->height);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue