LibGfx: Add inactive selection colors

This commit is contained in:
Tibor Nagy 2020-02-15 16:20:26 +01:00 committed by Andreas Kling
parent b515ea454f
commit 99192fd29f
Notes: sideshowbarker 2024-07-19 09:18:49 +09:00
3 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,8 @@ public:
Color window_text() const { return color(ColorRole::WindowText); }
Color selection() const { return color(ColorRole::Selection); }
Color selection_text() const { return color(ColorRole::SelectionText); }
Color inactive_selection() const { return color(ColorRole::InactiveSelection); }
Color inactive_selection_text() const { return color(ColorRole::InactiveSelectionText); }
Color desktop_background() const { return color(ColorRole::DesktopBackground); }
Color active_window_border1() const { return color(ColorRole::ActiveWindowBorder1); }
Color active_window_border2() const { return color(ColorRole::ActiveWindowBorder2); }

View File

@ -77,6 +77,8 @@ RefPtr<SharedBuffer> load_system_theme(const String& path)
DO_COLOR(HoverHighlight);
DO_COLOR(Selection);
DO_COLOR(SelectionText);
DO_COLOR(InactiveSelection);
DO_COLOR(InactiveSelectionText);
DO_COLOR(Window);
DO_COLOR(WindowText);
DO_COLOR(Base);

View File

@ -64,6 +64,8 @@ enum class ColorRole {
HoverHighlight,
Selection,
SelectionText,
InactiveSelection,
InactiveSelectionText,
RubberBandFill,
RubberBandBorder,
Link,