Theming improvements: reordered variables and added comments

This commit is contained in:
Karl Tauber
2021-10-02 00:53:54 +02:00
parent b2d40825ac
commit 4db39828ef
2 changed files with 26 additions and 8 deletions

View File

@@ -32,20 +32,29 @@
#---- variables ----
# general background and foreground (text color)
@background = #3c3f41
@foreground = #bbb
@disabledText = shade(@foreground,25%)
# component background
@buttonBackground = tint(@background,9%)
@textComponentBackground = tint(@background,5%)
@menuBackground = darken(@background,5%)
# selection
@selectionBackground = @accentSelectionBackground
@selectionForeground = contrast(@selectionBackground, @background, @foreground, 25%)
@selectionInactiveBackground = spin(saturate(shade(@selectionBackground,70%),20%),-15)
@selectionInactiveForeground = @foreground
@disabledText = shade(@foreground,25%)
@buttonBackground = tint(@background,9%)
@textComponentBackground = tint(@background,5%)
@menuBackground = darken(@background,5%)
# menu
@menuHoverBackground = lighten(@menuBackground,10%,derived)
@menuCheckBackground = darken(@selectionBackground,10%,derived noAutoInverse)
@menuAcceleratorForeground = darken(@foreground,15%)
@menuAcceleratorSelectionForeground = @selectionForeground
# misc
@cellFocusColor = #000
@icon = shade(@foreground,7%)

View File

@@ -32,20 +32,29 @@
#---- variables ----
# general background and foreground (text color)
@background = #f2f2f2
@foreground = #000
@disabledText = tint(@foreground,55%)
# component background
@buttonBackground = lighten(@background,5%)
@textComponentBackground = lighten(@background,5%)
@menuBackground = lighten(@background,5%)
# selection
@selectionBackground = @accentSelectionBackground
@selectionForeground = contrast(@selectionBackground, @foreground, #fff)
@selectionInactiveBackground = shade(@background,13%)
@selectionInactiveForeground = @foreground
@disabledText = tint(@foreground,55%)
@buttonBackground = lighten(@background,5%)
@textComponentBackground = lighten(@background,5%)
@menuBackground = lighten(@background,5%)
# menu
@menuHoverBackground = darken(@menuBackground,10%,derived)
@menuCheckBackground = lighten(@selectionBackground,40%,derived noAutoInverse)
@menuAcceleratorForeground = lighten(@foreground,30%)
@menuAcceleratorSelectionForeground = @selectionForeground
# misc
@cellFocusColor = #000
@icon = shade(@background,27%)