diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties index 4c554b12..0d459064 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties @@ -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 diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatIntelliJLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatIntelliJLaf.properties index bde21c6c..2d3423fc 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatIntelliJLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatIntelliJLaf.properties @@ -34,7 +34,7 @@ #---- variables ---- # accent colors (blueish) -@accentButtonDefaultBackground = tint(@accentColor,15%) +@accentButtonDefaultBackground = if(@accentColor, @accentColor, tint(@accentBaseColor,15%)) #---- Button ---- diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties index f28cd663..86541caa 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties @@ -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