1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +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:
Nullspeak 2020-07-17 10:27:55 +10:00 committed by Andreas Kling
parent 8e364b9780
commit 51b2b0d5e5
7 changed files with 142 additions and 10 deletions

View file

@ -0,0 +1,62 @@
[Colors]
DesktopBackground=#171717
ActiveWindowBorder1=black
ActiveWindowBorder2=#1f1f1f
ActiveWindowTitle=white
InactiveWindowBorder1=#171717
InactiveWindowBorder2=#1f1f1f
InactiveWindowTitle=#aaaaaa
MovingWindowBorder1=black
MovingWindowBorder2=#2f1f1f
MovingWindowTitle=white
HighlightWindowBorder1=black
HighlightWindowBorder2=#3f2f0f
HighlightWindowTitle=white
WindowTitleShadow=#00000000
WindowTitleStripes=#00000000
MenuBase=#1f1f1f
MenuBaseText=white
MenuStripe=#171717
MenuSelection=#ff7f00
MenuSelectionText=black
Window=#1f1f1f
WindowText=white
Button=#1f1f1f
ButtonText=white
Base=#1f1f1f
BaseText=white
ThreedHighlight=#2f2f2f
ThreedShadow1=#171717
ThreedShadow2=#0f0f0f
HoverHighlight=#272727
Selection=#ff7f00
SelectionText=black
InactiveSelection=#7f0000
InactiveSelectionText=black
RubberBandFill=#ff7f002f
RubberBandBorder=#ff7f00
Link=#88c
ActiveLink=#c88
VisitedLink=#c8c
Ruler=#0f0f0f
RulerBorder=#2f2f2f
RulerActiveText=white
RulerInactiveText=#2f2f2f
TextCursor=#ff4f4f
FocusOutline=#4f4f4f
SyntaxComment=#4fbf4f
SyntaxNumber=white
SyntaxString=#ff8f4f
SyntaxType=#6f8fff
SyntaxPunctuation=white
SyntaxOperator=white
SyntaxKeyword=#cf7fff
SyntaxControlKeyword=orchid
SyntaxIdentifier=white
SyntaxPreprocessorStatement=#ffafff
SyntaxPreprocessorValue=orange
[Metrics]
TitleHeight=24
TitleButtonWidth=32
TitleButtonHeight=18

View file

@ -12,6 +12,8 @@ MovingWindowTitle=white
HighlightWindowBorder1=#a10d0d
HighlightWindowBorder2=#fabbbb
HighlightWindowTitle=white
WindowTitleShadow=#421405
WindowTitleStripes=#6e2209
MenuBase=white
MenuBaseText=black
MenuStripe=#bbb7b0
@ -53,3 +55,8 @@ SyntaxControlKeyword=black
SyntaxIdentifier=#092e64
SyntaxPreprocessorStatement=#008080
SyntaxPreprocessorValue=#800000
[Metrics]
TitleHeight=19
TitleButtonWidth=15
TitleButtonHeight=15