From af3e280d74a4520f9784f0ef25dd68054f08504e Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Tue, 19 Apr 2022 23:00:01 +0200 Subject: [PATCH] Table: slightly changed grid colors to make grid better recognizable (issue #514) --- CHANGELOG.md | 2 ++ .../main/resources/com/formdev/flatlaf/FlatDarkLaf.properties | 2 +- .../main/resources/com/formdev/flatlaf/FlatLightLaf.properties | 2 +- flatlaf-testing/dumps/uidefaults/FlatDarkLaf_1.8.0.txt | 2 +- flatlaf-testing/dumps/uidefaults/FlatLightLaf_1.8.0.txt | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac9ebd16..0fc5f273 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ FlatLaf Change Log coloring. (issue #512) - SplitPane: Fixed `StackOverflowError` caused by layout loop that may occur under special circumstances. (issue #513) +- Table: Slightly changed grid colors to make grid better recognizable. (issue + #514) - ToolBar: Fixed endless loop in focus navigation that may occur under special circumstances. (issue #505) - IntelliJ Themes: `Component.accentColor` UI property now has useful theme 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 ca5abce3..4414670d 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties @@ -325,7 +325,7 @@ TabbedPane.closePressedForeground = $TabbedPane.closeHoverForeground #---- Table ---- -Table.gridColor = lighten($Table.background,5%) +Table.gridColor = lighten($Table.background,8%) #---- TableHeader ---- 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 21f77d1a..a1f62def 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties @@ -332,7 +332,7 @@ TabbedPane.closePressedForeground = $TabbedPane.closeHoverForeground #---- Table ---- -Table.gridColor = darken($Table.background,5%) +Table.gridColor = darken($Table.background,8%) #---- TableHeader ---- diff --git a/flatlaf-testing/dumps/uidefaults/FlatDarkLaf_1.8.0.txt b/flatlaf-testing/dumps/uidefaults/FlatDarkLaf_1.8.0.txt index a588786e..dbaf40eb 100644 --- a/flatlaf-testing/dumps/uidefaults/FlatDarkLaf_1.8.0.txt +++ b/flatlaf-testing/dumps/uidefaults/FlatDarkLaf_1.8.0.txt @@ -1092,7 +1092,7 @@ Table.focusCellHighlightBorder [lazy] 2,3,2,3 false com.formdev.flatlaf.ui.F Table.focusSelectedCellHighlightBorder [lazy] 2,3,2,3 false com.formdev.flatlaf.ui.FlatTableCellBorder$Selected [UI] lineColor=#000000 HSL 0 0 0 javax.swing.plaf.ColorUIResource [UI] lineThickness=1.000000 Table.font [active] $defaultFont [UI] Table.foreground #bbbbbb HSL 0 0 73 javax.swing.plaf.ColorUIResource [UI] -Table.gridColor #525658 HSL 200 4 33 javax.swing.plaf.ColorUIResource [UI] +Table.gridColor #5a5e60 HSL 200 3 36 javax.swing.plaf.ColorUIResource [UI] Table.intercellSpacing 0,0 javax.swing.plaf.DimensionUIResource [UI] Table.rowHeight 20 Table.scrollPaneBorder [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.FlatBorder [UI] diff --git a/flatlaf-testing/dumps/uidefaults/FlatLightLaf_1.8.0.txt b/flatlaf-testing/dumps/uidefaults/FlatLightLaf_1.8.0.txt index 5c7b832a..6c536ec7 100644 --- a/flatlaf-testing/dumps/uidefaults/FlatLightLaf_1.8.0.txt +++ b/flatlaf-testing/dumps/uidefaults/FlatLightLaf_1.8.0.txt @@ -1097,7 +1097,7 @@ Table.focusCellHighlightBorder [lazy] 2,3,2,3 false com.formdev.flatlaf.ui.F Table.focusSelectedCellHighlightBorder [lazy] 2,3,2,3 false com.formdev.flatlaf.ui.FlatTableCellBorder$Selected [UI] lineColor=#000000 HSL 0 0 0 javax.swing.plaf.ColorUIResource [UI] lineThickness=1.000000 Table.font [active] $defaultFont [UI] Table.foreground #000000 HSL 0 0 0 javax.swing.plaf.ColorUIResource [UI] -Table.gridColor #f2f2f2 HSL 0 0 95 javax.swing.plaf.ColorUIResource [UI] +Table.gridColor #ebebeb HSL 0 0 92 javax.swing.plaf.ColorUIResource [UI] Table.intercellSpacing 0,0 javax.swing.plaf.DimensionUIResource [UI] Table.rowHeight 20 Table.scrollPaneBorder [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.FlatBorder [UI]