mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:37:44 +00:00
WindowServer: New title bar vars for themes
The theming system can now control title bar height, title button size, title stripe color and the title text shadow color. The implemented theme metrics system could be later extended to LibGUI to allow themes to change widget padding, border width, etc.
This commit is contained in:
parent
8e364b9780
commit
51b2b0d5e5
7 changed files with 142 additions and 10 deletions
|
@ -47,6 +47,8 @@ enum class ColorRole {
|
|||
HighlightWindowBorder1,
|
||||
HighlightWindowBorder2,
|
||||
HighlightWindowTitle,
|
||||
WindowTitleShadow,
|
||||
WindowTitleStripes,
|
||||
MenuStripe,
|
||||
MenuBase,
|
||||
MenuBaseText,
|
||||
|
@ -95,8 +97,17 @@ enum class ColorRole {
|
|||
DisabledText = ThreedShadow1,
|
||||
};
|
||||
|
||||
enum class MetricRole {
|
||||
NoRole,
|
||||
TitleHeight,
|
||||
TitleButtonWidth,
|
||||
TitleButtonHeight,
|
||||
__Count,
|
||||
};
|
||||
|
||||
struct SystemTheme {
|
||||
Color color[(int)ColorRole::__Count];
|
||||
int metric[(int)MetricRole::__Count];
|
||||
};
|
||||
|
||||
const SystemTheme& current_system_theme();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue