summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/documentwidget.c1
-rw-r--r--src/ui/root.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 2bce16e8..2fd5f148 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -3763,6 +3763,7 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
3763 return iFalse; 3763 return iFalse;
3764 } 3764 }
3765 else if (equal_Command(cmd, "theme.changed")) { 3765 else if (equal_Command(cmd, "theme.changed")) {
3766 invalidatePalette_GmDocument(d->view.doc);
3766 invalidateTheme_History(d->mod.history); /* forget cached color palettes */ 3767 invalidateTheme_History(d->mod.history); /* forget cached color palettes */
3767 if (document_App() == d) { 3768 if (document_App() == d) {
3768 updateTheme_DocumentWidget_(d); 3769 updateTheme_DocumentWidget_(d);
diff --git a/src/ui/root.c b/src/ui/root.c
index d5148056..af759427 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -549,6 +549,11 @@ static iBool handleRootCommands_(iWidget *root, const char *cmd) {
549 root->root->pendingArrange = iFalse; 549 root->root->pendingArrange = iFalse;
550 return iTrue; 550 return iTrue;
551 } 551 }
552 else if (equal_Command(cmd, "theme.changed")) {
553 /* The phone toolbar is draw-buffered so it needs refreshing. */
554 refresh_Widget(findWidget_App("toolbar"));
555 return iFalse;
556 }
552 else if (handleCommand_App(cmd)) { 557 else if (handleCommand_App(cmd)) {
553 return iTrue; 558 return iTrue;
554 } 559 }