summaryrefslogtreecommitdiff
path: root/src/ui/color.h
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/color.h
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/color.h')
-rw-r--r--src/ui/color.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/color.h b/src/ui/color.h
index a359e09e..596fec7a 100644
--- a/src/ui/color.h
+++ b/src/ui/color.h
@@ -4,11 +4,20 @@
4#include <the_Foundation/math.h> 4#include <the_Foundation/math.h>
5 5
6enum iColorTheme { 6enum iColorTheme {
7 pureBlack_ColorTheme,
7 dark_ColorTheme, 8 dark_ColorTheme,
8 light_ColorTheme, 9 light_ColorTheme,
10 pureWhite_ColorTheme,
9 max_ColorTheme 11 max_ColorTheme
10}; 12};
11 13
14iLocalDef iBool isDark_ColorTheme(enum iColorTheme d) {
15 return d == pureBlack_ColorTheme || d == dark_ColorTheme;
16}
17iLocalDef iBool isLight_ColorTheme(enum iColorTheme d) {
18 return !isDark_ColorTheme(d);
19}
20
12enum iColorId { 21enum iColorId {
13 none_ColorId = -1, 22 none_ColorId = -1,
14 23
@@ -65,6 +74,7 @@ enum iColorId {
65 uiInputCursorText_ColorId, 74 uiInputCursorText_ColorId,
66 uiHeading_ColorId, 75 uiHeading_ColorId,
67 uiIcon_ColorId, 76 uiIcon_ColorId,
77 uiIconHover_ColorId,
68 uiSeparator_ColorId, 78 uiSeparator_ColorId,
69 uiMarked_ColorId, 79 uiMarked_ColorId,
70 uiMatching_ColorId, 80 uiMatching_ColorId,