diff options
-rw-r--r-- | Libraries/LibGfx/Palette.h | 4 | ||||
-rw-r--r-- | Libraries/LibGfx/SystemTheme.cpp | 4 | ||||
-rw-r--r-- | Libraries/LibGfx/SystemTheme.h | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Palette.h b/Libraries/LibGfx/Palette.h index ecd647e15e..73a500150d 100644 --- a/Libraries/LibGfx/Palette.h +++ b/Libraries/LibGfx/Palette.h @@ -94,6 +94,10 @@ public: Color hover_highlight() const { return color(ColorRole::ThreedHighlight); } Color rubber_band_fill() const { return color(ColorRole::RubberBandFill); } Color rubber_band_border() const { return color(ColorRole::RubberBandBorder); } + Color ruler() const { return color(ColorRole::Ruler); } + Color ruler_border() const { return color(ColorRole::RulerBorder); } + Color ruler_active_text() const { return color(ColorRole::RulerActiveText); } + Color ruler_inactive_text() const { return color(ColorRole::RulerInactiveText); } Color link() const { return color(ColorRole::Link); } Color active_link() const { return color(ColorRole::ActiveLink); } diff --git a/Libraries/LibGfx/SystemTheme.cpp b/Libraries/LibGfx/SystemTheme.cpp index 85a054fa83..4985d0e29e 100644 --- a/Libraries/LibGfx/SystemTheme.cpp +++ b/Libraries/LibGfx/SystemTheme.cpp @@ -108,6 +108,10 @@ RefPtr<SharedBuffer> load_system_theme(const String& path) DO_COLOR(Link); DO_COLOR(ActiveLink); DO_COLOR(VisitedLink); + DO_COLOR(Ruler); + DO_COLOR(RulerBorder); + DO_COLOR(RulerActiveText); + DO_COLOR(RulerInactiveText); buffer->seal(); buffer->share_globally(); diff --git a/Libraries/LibGfx/SystemTheme.h b/Libraries/LibGfx/SystemTheme.h index 5024c024f3..fca2c92ac6 100644 --- a/Libraries/LibGfx/SystemTheme.h +++ b/Libraries/LibGfx/SystemTheme.h @@ -71,6 +71,10 @@ enum class ColorRole { Link, ActiveLink, VisitedLink, + Ruler, + RulerBorder, + RulerActiveText, + RulerInactiveText, __Count, |