From e5d90606234c79257b1df8aa38a2ca13ba244924 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 23 Jan 2021 18:49:35 +0100 Subject: [PATCH] UI defaults: added links to docs and note to properties files --- .../com/formdev/flatlaf/FlatDarculaLaf.properties | 13 +++++++++++++ .../com/formdev/flatlaf/FlatDarkLaf.properties | 12 ++++++++++++ .../com/formdev/flatlaf/FlatIntelliJLaf.properties | 13 +++++++++++++ .../com/formdev/flatlaf/FlatLaf.properties | 12 ++++++++++++ .../com/formdev/flatlaf/FlatLightLaf.properties | 12 ++++++++++++ .../flatlaf/IntelliJTheme$ThemeLaf.properties | 8 ++++++++ 6 files changed, 70 insertions(+) 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 7c99659b..8eed74fb 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarculaLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarculaLaf.properties @@ -14,6 +14,19 @@ # limitations under the License. # +# +# This file is loaded for "FlatLaf Darcula" theme (that extend class FlatDarculaLaf) +# and for all dark IntelliJ Platform themes. +# +# Documentation: +# - https://www.formdev.com/flatlaf/properties-files/ +# - https://www.formdev.com/flatlaf/how-to-customize/ +# +# NOTE: Avoid copying the whole content of this file to own properties files. +# This will make upgrading to newer FlatLaf versions complex and error-prone. +# Instead copy and modify only those properties that you need to alter. +# + # Colors and style mostly based on Darcula theme from IntelliJ IDEA Community Edition, # which is licensed under the Apache 2.0 license. Copyright 2000-2019 JetBrains s.r.o. # See: https://github.com/JetBrains/intellij-community/ 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 cca3abab..a6df7a75 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties @@ -14,6 +14,18 @@ # limitations under the License. # +# +# This file is loaded for all dark themes (that extend class FlatDarkLaf). +# +# Documentation: +# - https://www.formdev.com/flatlaf/properties-files/ +# - https://www.formdev.com/flatlaf/how-to-customize/ +# +# NOTE: Avoid copying the whole content of this file to own properties files. +# This will make upgrading to newer FlatLaf versions complex and error-prone. +# Instead copy and modify only those properties that you need to alter. +# + # Colors and style mostly based on Darcula theme from IntelliJ IDEA Community Edition, # which is licensed under the Apache 2.0 license. Copyright 2000-2019 JetBrains s.r.o. # See: https://github.com/JetBrains/intellij-community/ 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 cafd75bf..550459f4 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatIntelliJLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatIntelliJLaf.properties @@ -14,6 +14,19 @@ # limitations under the License. # +# +# This file is loaded for "FlatLaf IntelliJ" theme (that extend class FlatIntelliJLaf) +# and for all light IntelliJ Platform themes. +# +# Documentation: +# - https://www.formdev.com/flatlaf/properties-files/ +# - https://www.formdev.com/flatlaf/how-to-customize/ +# +# NOTE: Avoid copying the whole content of this file to own properties files. +# This will make upgrading to newer FlatLaf versions complex and error-prone. +# Instead copy and modify only those properties that you need to alter. +# + # Colors and style mostly based on IntelliJ theme from IntelliJ IDEA Community Edition, # which is licensed under the Apache 2.0 license. Copyright 2000-2019 JetBrains s.r.o. # See: https://github.com/JetBrains/intellij-community/ diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLaf.properties index 9d39f7cb..464bae54 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLaf.properties @@ -14,6 +14,18 @@ # limitations under the License. # +# +# This file is loaded for all themes. +# +# Documentation: +# - https://www.formdev.com/flatlaf/properties-files/ +# - https://www.formdev.com/flatlaf/how-to-customize/ +# +# NOTE: Avoid copying the whole content of this file to own properties files. +# This will make upgrading to newer FlatLaf versions complex and error-prone. +# Instead copy and modify only those properties that you need to alter. +# + #---- UI delegates ---- ButtonUI = com.formdev.flatlaf.ui.FlatButtonUI 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 0e88114b..4af3fb36 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties @@ -14,6 +14,18 @@ # limitations under the License. # +# +# This file is loaded for all light themes (that extend class FlatLightLaf). +# +# Documentation: +# - https://www.formdev.com/flatlaf/properties-files/ +# - https://www.formdev.com/flatlaf/how-to-customize/ +# +# NOTE: Avoid copying the whole content of this file to own properties files. +# This will make upgrading to newer FlatLaf versions complex and error-prone. +# Instead copy and modify only those properties that you need to alter. +# + # Colors and style mostly based on IntelliJ theme from IntelliJ IDEA Community Edition, # which is licensed under the Apache 2.0 license. Copyright 2000-2019 JetBrains s.r.o. # See: https://github.com/JetBrains/intellij-community/ diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties index b1b262a0..bf60e3b3 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/IntelliJTheme$ThemeLaf.properties @@ -14,6 +14,14 @@ # limitations under the License. # +# +# This file is loaded for all IntelliJ Platform themes. +# +# Documentation: +# - https://www.formdev.com/flatlaf/properties-files/ +# - https://www.formdev.com/flatlaf/how-to-customize/ +# + #---- Button ---- Button.startBackground = $Button.background