summaryrefslogtreecommitdiff
path: root/Libraries/LibDraw
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-24 22:01:32 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-24 22:01:32 +0100
commitaae54bdbde5fb8c0100eaaaeaa00194f3a0fcdd6 (patch)
tree1a3ba4fdb7d551e683110de8beffc654fb5c6044 /Libraries/LibDraw
parenta79bac428b7857b9db2d0641daf3b7f2e3deb91f (diff)
downloadserenity-aae54bdbde5fb8c0100eaaaeaa00194f3a0fcdd6.zip
LibDraw: Add ColorRole::BaseText (to be painted on ColorRole::Base)
Diffstat (limited to 'Libraries/LibDraw')
-rw-r--r--Libraries/LibDraw/Palette.h1
-rw-r--r--Libraries/LibDraw/SystemTheme.cpp1
-rw-r--r--Libraries/LibDraw/SystemTheme.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibDraw/Palette.h b/Libraries/LibDraw/Palette.h
index e7cbd22211..2d5acf784f 100644
--- a/Libraries/LibDraw/Palette.h
+++ b/Libraries/LibDraw/Palette.h
@@ -31,6 +31,7 @@ public:
Color menu_base() const { return color(ColorRole::MenuBase); }
Color menu_selection() const { return color(ColorRole::MenuSelection); }
Color base() const { return color(ColorRole::Base); }
+ Color base_text() const { return color(ColorRole::BaseText); }
Color button() const { return color(ColorRole::Button); }
Color button_text() const { return color(ColorRole::ButtonText); }
Color threed_highlight() const { return color(ColorRole::ThreedHighlight); }
diff --git a/Libraries/LibDraw/SystemTheme.cpp b/Libraries/LibDraw/SystemTheme.cpp
index 1ca8ede2eb..38178f9be4 100644
--- a/Libraries/LibDraw/SystemTheme.cpp
+++ b/Libraries/LibDraw/SystemTheme.cpp
@@ -54,6 +54,7 @@ RefPtr<SharedBuffer> load_system_theme(const String& path)
DO_COLOR(Window);
DO_COLOR(WindowText);
DO_COLOR(Base);
+ DO_COLOR(BaseText);
DO_COLOR(Button);
DO_COLOR(ButtonText);
DO_COLOR(DesktopBackground);
diff --git a/Libraries/LibDraw/SystemTheme.h b/Libraries/LibDraw/SystemTheme.h
index 4150dbef41..b7b153546e 100644
--- a/Libraries/LibDraw/SystemTheme.h
+++ b/Libraries/LibDraw/SystemTheme.h
@@ -27,6 +27,7 @@ enum class ColorRole {
Button,
ButtonText,
Base,
+ BaseText,
ThreedHighlight,
ThreedShadow1,
ThreedShadow2,