Window decorations: RootPane.activeBorderColor and RootPane.inactiveBorderColor fixes:

- FlatDarkLaf.properties: changed darken() to lighten(), which does not change real colors due to autoInverse mechanism
- FlatLightLaf.properties: use also derived colors (to be consistent with FlatDarkLaf.properties and fix warning in UIDefaultsDump)
This commit is contained in:
Karl Tauber
2021-01-16 01:01:36 +01:00
parent 1024d6fc07
commit f97783ddef
4 changed files with 8 additions and 8 deletions

View File

@@ -218,8 +218,8 @@ ProgressBar.selectionBackground = @foreground
#---- RootPane ----
RootPane.activeBorderColor = darken(@background,7%,derived)
RootPane.inactiveBorderColor = darken(@background,5%,derived)
RootPane.activeBorderColor = lighten(@background,7%,derived)
RootPane.inactiveBorderColor = lighten(@background,5%,derived)
#---- ScrollBar ----

View File

@@ -230,8 +230,8 @@ ProgressBar.selectionBackground = @foreground
#---- RootPane ----
RootPane.activeBorderColor = #707070
RootPane.inactiveBorderColor = lighten($RootPane.activeBorderColor,20%,derived)
RootPane.activeBorderColor = darken(@background,50%,derived)
RootPane.inactiveBorderColor = darken(@background,30%,derived)
#---- ScrollBar ----

View File

@@ -764,7 +764,7 @@ Resizable.resizeBorder [lazy] 4,4,4,4 false com.formdev.flatlaf.ui.F
#---- RootPane ----
RootPane.activeBorderColor #4d5154 com.formdev.flatlaf.util.DerivedColor [UI] darken(7% autoInverse)
RootPane.activeBorderColor #4d5154 com.formdev.flatlaf.util.DerivedColor [UI] lighten(7% autoInverse)
RootPane.border [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.FlatRootPaneUI$FlatWindowBorder [UI]
RootPane.borderDragThickness 5
RootPane.cornerDragWidth 16
@@ -779,7 +779,7 @@ RootPane.defaultButtonWindowKeyBindings length=8 [Ljava.lang.Object;
[7] release
RootPane.honorDialogMinimumSizeOnResize true
RootPane.honorFrameMinimumSizeOnResize false
RootPane.inactiveBorderColor #484c4e com.formdev.flatlaf.util.DerivedColor [UI] darken(5% autoInverse)
RootPane.inactiveBorderColor #484c4e com.formdev.flatlaf.util.DerivedColor [UI] lighten(5% autoInverse)
RootPaneUI com.formdev.flatlaf.ui.FlatRootPaneUI

View File

@@ -770,7 +770,7 @@ Resizable.resizeBorder [lazy] 4,4,4,4 false com.formdev.flatlaf.ui.F
#---- RootPane ----
RootPane.activeBorderColor #707070 javax.swing.plaf.ColorUIResource [UI]
RootPane.activeBorderColor #737373 com.formdev.flatlaf.util.DerivedColor [UI] darken(50% autoInverse)
RootPane.border [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.FlatRootPaneUI$FlatWindowBorder [UI]
RootPane.borderDragThickness 5
RootPane.cornerDragWidth 16
@@ -785,7 +785,7 @@ RootPane.defaultButtonWindowKeyBindings length=8 [Ljava.lang.Object;
[7] release
RootPane.honorDialogMinimumSizeOnResize true
RootPane.honorFrameMinimumSizeOnResize false
RootPane.inactiveBorderColor #bfbfbf / #a3a3a3 com.formdev.flatlaf.util.DerivedColor [UI] lighten(20% autoInverse)
RootPane.inactiveBorderColor #a6a6a6 com.formdev.flatlaf.util.DerivedColor [UI] darken(30% autoInverse)
RootPaneUI com.formdev.flatlaf.ui.FlatRootPaneUI