mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
LibGfx: Add ColorRoles for rulers
This commit is contained in:
parent
f17c377a0c
commit
5cf5ddf6cb
Notes:
sideshowbarker
2024-07-19 09:13:26 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/5cf5ddf6cb8 Pull-request: https://github.com/SerenityOS/serenity/pull/1248
@ -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…
Reference in New Issue
Block a user