summaryrefslogtreecommitdiff
path: root/src/ui/labelwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 18:56:01 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-16 18:56:01 +0300
commit69ea47be1cee7298b65db8104f1c88e51554ba48 (patch)
treebf4cf799be4d9ceacec548edcd1eff30db92d757 /src/ui/labelwidget.c
parent6d8bf2508f5e2af36b61cca42ed68cad26c41d56 (diff)
Added Pure Black and Pure White themes
Font changes cause window redrawing to pause so document layout doesn’t get an intermediate update with a different width. Sheets are mouse-modal.
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r--src/ui/labelwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index 62eb9853..a3daff44 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -149,7 +149,7 @@ static void getColors_LabelWidget_(const iLabelWidget *d, int *bg, int *fg, int
149 else { 149 else {
150 /* Frames matching color escaped text. */ 150 /* Frames matching color escaped text. */
151 if (startsWith_String(&d->label, "\r")) { 151 if (startsWith_String(&d->label, "\r")) {
152 if (colorTheme_App() == dark_ColorTheme) { 152 if (isDark_ColorTheme(colorTheme_App())) {
153 *frame1 = cstr_String(&d->label)[1] - '0'; 153 *frame1 = cstr_String(&d->label)[1] - '0';
154 *frame2 = darker_Color(*frame1); 154 *frame2 = darker_Color(*frame1);
155 } 155 }