mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
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:
@@ -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
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#---- variables ----
|
||||
|
||||
# accent colors (blueish)
|
||||
@accentButtonDefaultBackground = tint(@accentColor,15%)
|
||||
@accentButtonDefaultBackground = if(@accentColor, @accentColor, tint(@accentBaseColor,15%))
|
||||
|
||||
#---- Button ----
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user