LibGfx: Add ColorRoles for rulers

This commit is contained in:
Tibor Nagy 2020-02-19 11:07:12 +01:00 committed by Andreas Kling
parent f17c377a0c
commit 5cf5ddf6cb
Notes: sideshowbarker 2024-07-19 09:13:26 +09:00
3 changed files with 12 additions and 0 deletions

View File

@ -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); }

View File

@ -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();

View File

@ -71,6 +71,10 @@ enum class ColorRole {
Link,
ActiveLink,
VisitedLink,
Ruler,
RulerBorder,
RulerActiveText,
RulerInactiveText,
__Count,