1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

LibGfx+LibGUI: Allow theming the text cursor

This commit is contained in:
Tibor Nagy 2020-02-20 09:01:48 +01:00 committed by Andreas Kling
parent 7592f9afd5
commit c8bc53e987
9 changed files with 9 additions and 1 deletions

View file

@ -98,6 +98,7 @@ public:
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 text_cursor() const { return color(ColorRole::TextCursor); }
Color link() const { return color(ColorRole::Link); }
Color active_link() const { return color(ColorRole::ActiveLink); }

View file

@ -112,6 +112,7 @@ RefPtr<SharedBuffer> load_system_theme(const String& path)
DO_COLOR(RulerBorder);
DO_COLOR(RulerActiveText);
DO_COLOR(RulerInactiveText);
DO_COLOR(TextCursor);
buffer->seal();
buffer->share_globally();

View file

@ -75,6 +75,7 @@ enum class ColorRole {
RulerBorder,
RulerActiveText,
RulerInactiveText,
TextCursor,
__Count,