From b0edd5659f82e053d79e00555b2d0bebd9cbdcf3 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Tue, 28 Sep 2021 14:18:34 +0200 Subject: [PATCH] Accent color: made accent focus border colors lighter/darker in IntelliJ/Darcula themes (issue #233) --- .../resources/com/formdev/flatlaf/FlatDarculaLaf.properties | 6 ++++++ .../com/formdev/flatlaf/FlatIntelliJLaf.properties | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarculaLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarculaLaf.properties index 2c3d196a..8d5c903a 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarculaLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarculaLaf.properties @@ -31,6 +31,12 @@ # which is licensed under the Apache 2.0 license. Copyright 2000-2019 JetBrains s.r.o. # See: https://github.com/JetBrains/intellij-community/ +#---- variables ---- + +# accent colors (blueish) +@accentFocusColor = if(@accentColor, darken(@accentColor,20%), shade(spin(@accentBaseColor,-8),20%)) + + #---- Button ---- Button.innerFocusWidth = 0 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 2d3423fc..c2e8eb4b 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,8 @@ #---- variables ---- # accent colors (blueish) -@accentButtonDefaultBackground = if(@accentColor, @accentColor, tint(@accentBaseColor,15%)) +@accentFocusColor = if(@accentColor, lighten(@accentColor,20%), lighten(@accentBaseColor,31%)) +@accentButtonDefaultBackground = if(@accentColor, @accentColor, tint(@accentBaseColor,15%)) #---- Button ----