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:
Nullspeak 2020-07-17 10:27:55 +10:00 committed by Andreas Kling
commit 51b2b0d5e5
Notes: sideshowbarker 2024-07-19 18:30:21 +09:00
7 changed files with 142 additions and 10 deletions

View file

@ -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();