mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:17:45 +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:
parent
03cca20699
commit
e378587c82
15 changed files with 15 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#ff7f00
|
||||
DesktopBackground=#171717
|
||||
ActiveWindowBorder1=black
|
||||
ActiveWindowBorder2=#1f1f1f
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#574dbb
|
||||
DesktopBackground=#567f9d
|
||||
ActiveWindowBorder1=#574dbb
|
||||
ActiveWindowBorder2=#574dbb
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#4d4d5f
|
||||
DesktopBackground=#202020
|
||||
ActiveWindowBorder1=#3d3d4f
|
||||
ActiveWindowBorder2=#b7b7da
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[Colors]
|
||||
DesktopBackground=#505050
|
||||
Accent=#ab6e4a
|
||||
ActiveWindowBorder1=#6e2209
|
||||
ActiveWindowBorder2=#f4ca9e
|
||||
ActiveWindowTitle=white
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#84bdaa
|
||||
DesktopBackground=#a28d68
|
||||
ActiveWindowBorder1=#008080
|
||||
ActiveWindowBorder2=#84bdaa
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#000000
|
||||
DesktopBackground=#505170
|
||||
ActiveWindowBorder1=black
|
||||
ActiveWindowBorder2=black
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#ffffff
|
||||
DesktopBackground=#0f0f0f
|
||||
ActiveWindowBorder1=#e3e3e3
|
||||
ActiveWindowBorder2=#e3e3e3
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#4c566a
|
||||
DesktopBackground=#3b4252
|
||||
ActiveWindowBorder1=#4c566a
|
||||
ActiveWindowBorder2=#434c5e
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#a084b8
|
||||
DesktopBackground=#402840
|
||||
ActiveWindowBorder1=#484060
|
||||
ActiveWindowBorder2=#a084b8
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#4a6eab
|
||||
DesktopBackground=#3a6ea5
|
||||
ActiveWindowBorder1=#09226e
|
||||
ActiveWindowBorder2=#9ecaf4
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#0000ab
|
||||
DesktopBackground=#008080
|
||||
ActiveWindowBorder1=#00007f
|
||||
ActiveWindowBorder2=#00007f
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#777
|
||||
DesktopBackground=#63639c
|
||||
ActiveWindowBorder1=#777
|
||||
ActiveWindowBorder2=white
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[Colors]
|
||||
Accent=#b24d7a
|
||||
DesktopBackground=#574c8f
|
||||
ActiveWindowBorder1=#b24d7a
|
||||
ActiveWindowBorder2=#b24d7a
|
||||
|
|
|
@ -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); }
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
namespace Gfx {
|
||||
|
||||
#define ENUMERATE_COLOR_ROLES(C) \
|
||||
C(Accent) \
|
||||
C(ActiveLink) \
|
||||
C(ActiveWindowBorder1) \
|
||||
C(ActiveWindowBorder2) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue