summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 16:47:13 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 16:47:13 +0300
commit6d8bf2508f5e2af36b61cca42ed68cad26c41d56 (patch)
treefa80ff80181af63ce557ef71fbe8177851fb9ac4 /src/ui/documentwidget.c
parent45a92070bf8681cf3b91ec784a2368e9653e9c5d (diff)
Further theme color improvements
Default seed colors.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index ae828367..eb126a0f 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -864,8 +864,9 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
864 refresh_Widget(w); 864 refresh_Widget(w);
865 updateWindowTitle_DocumentWidget_(d); 865 updateWindowTitle_DocumentWidget_(d);
866 } 866 }
867 else if (equal_Command(cmd, "theme.changed")) { 867 else if (equal_Command(cmd, "theme.changed") && document_App() == d) {
868 updateTheme_DocumentWidget_(d); 868 updateTheme_DocumentWidget_(d);
869 refresh_Widget(w);
869 } 870 }
870 else if (equal_Command(cmd, "tabs.changed")) { 871 else if (equal_Command(cmd, "tabs.changed")) {
871 if (cmp_String(id_Widget(w), suffixPtr_Command(cmd, "id")) == 0) { 872 if (cmp_String(id_Widget(w), suffixPtr_Command(cmd, "id")) == 0) {
@@ -1291,8 +1292,8 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) {
1291 const iInt2 visPos = add_I2(run->visBounds.pos, origin); 1292 const iInt2 visPos = add_I2(run->visBounds.pos, origin);
1292 /* Text markers. */ 1293 /* Text markers. */
1293 /* TODO: Add themed palette entries */ 1294 /* TODO: Add themed palette entries */
1294 fillRange_DrawContext_(d, run, teal_ColorId, d->widget->foundMark, &d->inFoundMark); 1295 fillRange_DrawContext_(d, run, uiMatching_ColorId, d->widget->foundMark, &d->inFoundMark);
1295 fillRange_DrawContext_(d, run, brown_ColorId, d->widget->selectMark, &d->inSelectMark); 1296 fillRange_DrawContext_(d, run, uiMarked_ColorId, d->widget->selectMark, &d->inSelectMark);
1296 if (run->linkId && !isEmpty_Rect(run->bounds)) { 1297 if (run->linkId && !isEmpty_Rect(run->bounds)) {
1297 fg = linkColor_GmDocument(doc, run->linkId, isHover ? textHover_GmLinkPart : text_GmLinkPart); 1298 fg = linkColor_GmDocument(doc, run->linkId, isHover ? textHover_GmLinkPart : text_GmLinkPart);
1298 if (linkFlags_GmDocument(doc, run->linkId) & content_GmLinkFlag) { 1299 if (linkFlags_GmDocument(doc, run->linkId) & content_GmLinkFlag) {