Theme loading fixed.

This commit is contained in:
Scott Duensing 2026-03-22 17:10:42 -05:00
parent 0a36dbe09e
commit d3bafd26b4

View file

@ -1597,7 +1597,18 @@ void dvxApplyColorScheme(AppContextT *ctx) {
ctx->cursorFg = ctx->colors.cursorFg; ctx->cursorFg = ctx->colors.cursorFg;
ctx->cursorBg = ctx->colors.cursorBg; 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); dirtyListAdd(&ctx->dirty, 0, 0, d->width, d->height);
} }