Accent color:

- introduced @accentBaseColor variable that is now used as base for accent colors in Light/Dark/IntelliJ/Darcula themes, which use variations of the accent color
- @accentColor is now `null` by default, but if set to a color, then it is used unmodified for all accents

(issue #233)
This commit is contained in:
Karl Tauber
2021-09-26 23:56:56 +02:00
parent a4ea88f4be
commit 15c6f11a5e
3 changed files with 23 additions and 15 deletions

View File

@@ -49,13 +49,17 @@
@icon = #adadad
# accent colors (blueish)
@accentColor = #4B6EAF
@accentFocusColor = shade(spin(@accentColor,-8),20%)
@accentLinkColor = lighten(saturate(spin(@accentColor,-5),50%),16%)
@accentSelectionBackground = @accentColor
@accentSliderColor = @accentUnderlineColor
@accentUnderlineColor = lighten(saturate(spin(@accentColor,-8),13%),5%)
@accentButtonDefaultBackground = darken(spin(@accentColor,-8),13%)
# set @accentColor to use single accent color or
# modify @accentBaseColor to use variations of accent base color
@accentColor = null
@accentBaseColor = #4B6EAF
# accent color variations
@accentFocusColor = if(@accentColor, @accentColor, shade(spin(@accentBaseColor,-8),20%))
@accentLinkColor = if(@accentColor, @accentColor, lighten(saturate(spin(@accentBaseColor,-5),50%),16%))
@accentSelectionBackground = if(@accentColor, @accentColor, @accentBaseColor)
@accentSliderColor = if(@accentColor, @accentColor, @accentUnderlineColor)
@accentUnderlineColor = if(@accentColor, @accentColor, lighten(saturate(spin(@accentBaseColor,-8),13%),5%))
@accentButtonDefaultBackground = if(@accentColor, @accentColor, darken(spin(@accentBaseColor,-8),13%))
# for buttons within components (e.g. combobox or spinner)
@buttonArrowColor = #9A9DA1

View File

@@ -34,7 +34,7 @@
#---- variables ----
# accent colors (blueish)
@accentButtonDefaultBackground = tint(@accentColor,15%)
@accentButtonDefaultBackground = if(@accentColor, @accentColor, tint(@accentBaseColor,15%))
#---- Button ----

View File

@@ -49,13 +49,17 @@
@icon = #afafaf
# accent colors (blueish)
@accentColor = #2675BF
@accentCheckmarkColor = tint(@accentSliderColor,20%)
@accentFocusColor = lighten(@accentColor,31%)
@accentLinkColor = darken(@accentColor,3%)
@accentSelectionBackground = @accentColor
@accentSliderColor = lighten(saturate(@accentColor,10%),6%)
@accentUnderlineColor = tint(@accentColor,10%)
# set @accentColor to use single accent color or
# modify @accentBaseColor to use variations of accent base color
@accentColor = null
@accentBaseColor = #2675BF
# accent color variations
@accentCheckmarkColor = if(@accentColor, @accentColor, tint(@accentSliderColor,20%))
@accentFocusColor = if(@accentColor, @accentColor, lighten(@accentBaseColor,31%))
@accentLinkColor = if(@accentColor, @accentColor, darken(@accentBaseColor,3%))
@accentSelectionBackground = if(@accentColor, @accentColor, @accentBaseColor)
@accentSliderColor = if(@accentColor, @accentColor, lighten(saturate(@accentBaseColor,10%),6%))
@accentUnderlineColor = if(@accentColor, @accentColor, tint(@accentBaseColor,10%))
# for buttons within components (e.g. combobox or spinner)
@buttonArrowColor = #666