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

LibGfx+Base: Add a themable "Accent" color role

This can be used by GUI widgets to draw attention to a specific part of
the widget, for example the currently active sub-widget component.
This commit is contained in:
Andreas Kling 2021-07-28 20:20:57 +02:00
parent 03cca20699
commit e378587c82
15 changed files with 15 additions and 0 deletions

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#ff7f00
DesktopBackground=#171717
ActiveWindowBorder1=black
ActiveWindowBorder2=#1f1f1f

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#574dbb
DesktopBackground=#567f9d
ActiveWindowBorder1=#574dbb
ActiveWindowBorder2=#574dbb

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#4d4d5f
DesktopBackground=#202020
ActiveWindowBorder1=#3d3d4f
ActiveWindowBorder2=#b7b7da

View file

@ -1,5 +1,6 @@
[Colors]
DesktopBackground=#505050
Accent=#ab6e4a
ActiveWindowBorder1=#6e2209
ActiveWindowBorder2=#f4ca9e
ActiveWindowTitle=white

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#84bdaa
DesktopBackground=#a28d68
ActiveWindowBorder1=#008080
ActiveWindowBorder2=#84bdaa

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#000000
DesktopBackground=#505170
ActiveWindowBorder1=black
ActiveWindowBorder2=black

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#ffffff
DesktopBackground=#0f0f0f
ActiveWindowBorder1=#e3e3e3
ActiveWindowBorder2=#e3e3e3

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#4c566a
DesktopBackground=#3b4252
ActiveWindowBorder1=#4c566a
ActiveWindowBorder2=#434c5e

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#a084b8
DesktopBackground=#402840
ActiveWindowBorder1=#484060
ActiveWindowBorder2=#a084b8

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#4a6eab
DesktopBackground=#3a6ea5
ActiveWindowBorder1=#09226e
ActiveWindowBorder2=#9ecaf4

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#0000ab
DesktopBackground=#008080
ActiveWindowBorder1=#00007f
ActiveWindowBorder2=#00007f

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#777
DesktopBackground=#63639c
ActiveWindowBorder1=#777
ActiveWindowBorder2=white

View file

@ -1,4 +1,5 @@
[Colors]
Accent=#b24d7a
DesktopBackground=#574c8f
ActiveWindowBorder1=#b24d7a
ActiveWindowBorder2=#b24d7a

View file

@ -48,6 +48,7 @@ public:
explicit Palette(const PaletteImpl&);
~Palette();
Color accent() const { return color(ColorRole::Accent); }
Color window() const { return color(ColorRole::Window); }
Color window_text() const { return color(ColorRole::WindowText); }
Color selection() const { return color(ColorRole::Selection); }

View file

@ -15,6 +15,7 @@
namespace Gfx {
#define ENUMERATE_COLOR_ROLES(C) \
C(Accent) \
C(ActiveLink) \
C(ActiveWindowBorder1) \
C(ActiveWindowBorder2) \