mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibGfx: Add ColorRoles for rulers
This commit is contained in:
parent
f17c377a0c
commit
5cf5ddf6cb
3 changed files with 12 additions and 0 deletions
|
@ -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); }
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -71,6 +71,10 @@ enum class ColorRole {
|
|||
Link,
|
||||
ActiveLink,
|
||||
VisitedLink,
|
||||
Ruler,
|
||||
RulerBorder,
|
||||
RulerActiveText,
|
||||
RulerInactiveText,
|
||||
|
||||
__Count,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue