SwingX: fixed striping background highlighting color (e.g. alternating table rows) in dark themes

Table: made grid lines slightly darker/lighter
This commit is contained in:
Karl Tauber
2020-12-07 12:28:31 +01:00
parent a1c7c29113
commit 81c35eab46
8 changed files with 33 additions and 4 deletions

View File

@@ -1,6 +1,14 @@
FlatLaf Change Log FlatLaf Change Log
================== ==================
## 0.46-SNAPSHOT
#### Fixed bugs
- SwingX: Fixed striping background highlighting color (e.g. alternating table
rows) in dark themes.
## 0.45 ## 0.45
#### New features and improvements #### New features and improvements

View File

@@ -275,7 +275,7 @@ TabbedPane.closePressedForeground=$TabbedPane.closeHoverForeground
#---- Table ---- #---- Table ----
Table.gridColor=lighten($Table.background,3%) Table.gridColor=lighten($Table.background,5%)
#---- TableHeader ---- #---- TableHeader ----

View File

@@ -287,7 +287,7 @@ TabbedPane.closePressedForeground=$TabbedPane.closeHoverForeground
#---- Table ---- #---- Table ----
Table.gridColor=darken($Table.background,3%) Table.gridColor=darken($Table.background,5%)
#---- TableHeader ---- #---- TableHeader ----

View File

@@ -26,6 +26,11 @@ JXHeader.background=@background
JXHeader.startBackground=#4c5052 JXHeader.startBackground=#4c5052
#---- HighlighterFactory ----
UIColorHighlighter.stripingBackground=lighten(@textComponentBackground,5%)
#---- Hyperlink ---- #---- Hyperlink ----
Hyperlink.linkColor=#589df6 Hyperlink.linkColor=#589df6

View File

@@ -26,6 +26,11 @@ JXHeader.background=@background
JXHeader.startBackground=#fff JXHeader.startBackground=#fff
#---- HighlighterFactory ----
UIColorHighlighter.stripingBackground=darken(@textComponentBackground,5%)
#---- Hyperlink ---- #---- Hyperlink ----
Hyperlink.linkColor=$Component.linkColor Hyperlink.linkColor=$Component.linkColor

View File

@@ -995,7 +995,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 javax.swing.plaf.ColorUIResource [UI] lineThickness=1.000000 Table.focusSelectedCellHighlightBorder [lazy] 2,3,2,3 false com.formdev.flatlaf.ui.FlatTableCellBorder$Selected [UI] lineColor=#000000 javax.swing.plaf.ColorUIResource [UI] lineThickness=1.000000
Table.font [active] $defaultFont [UI] Table.font [active] $defaultFont [UI]
Table.foreground #bbbbbb javax.swing.plaf.ColorUIResource [UI] Table.foreground #bbbbbb javax.swing.plaf.ColorUIResource [UI]
Table.gridColor #4c5152 javax.swing.plaf.ColorUIResource [UI] Table.gridColor #515657 javax.swing.plaf.ColorUIResource [UI]
Table.intercellSpacing 0,0 javax.swing.plaf.DimensionUIResource [UI] Table.intercellSpacing 0,0 javax.swing.plaf.DimensionUIResource [UI]
Table.rowHeight 20 Table.rowHeight 20
Table.scrollPaneBorder [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.FlatBorder [UI] Table.scrollPaneBorder [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.FlatBorder [UI]
@@ -1273,6 +1273,11 @@ Tree.wideSelection true
TreeUI com.formdev.flatlaf.ui.FlatTreeUI TreeUI com.formdev.flatlaf.ui.FlatTreeUI
#---- UIColorHighlighter ----
UIColorHighlighter.stripingBackground #515657 javax.swing.plaf.ColorUIResource [UI]
#---- Viewport ---- #---- Viewport ----
Viewport.background #3c3f41 javax.swing.plaf.ColorUIResource [UI] Viewport.background #3c3f41 javax.swing.plaf.ColorUIResource [UI]

View File

@@ -1000,7 +1000,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 javax.swing.plaf.ColorUIResource [UI] lineThickness=1.000000 Table.focusSelectedCellHighlightBorder [lazy] 2,3,2,3 false com.formdev.flatlaf.ui.FlatTableCellBorder$Selected [UI] lineColor=#000000 javax.swing.plaf.ColorUIResource [UI] lineThickness=1.000000
Table.font [active] $defaultFont [UI] Table.font [active] $defaultFont [UI]
Table.foreground #000000 javax.swing.plaf.ColorUIResource [UI] Table.foreground #000000 javax.swing.plaf.ColorUIResource [UI]
Table.gridColor #f7f7f7 javax.swing.plaf.ColorUIResource [UI] Table.gridColor #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
Table.intercellSpacing 0,0 javax.swing.plaf.DimensionUIResource [UI] Table.intercellSpacing 0,0 javax.swing.plaf.DimensionUIResource [UI]
Table.rowHeight 20 Table.rowHeight 20
Table.scrollPaneBorder [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.FlatBorder [UI] Table.scrollPaneBorder [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.FlatBorder [UI]
@@ -1278,6 +1278,11 @@ Tree.wideSelection true
TreeUI com.formdev.flatlaf.ui.FlatTreeUI TreeUI com.formdev.flatlaf.ui.FlatTreeUI
#---- UIColorHighlighter ----
UIColorHighlighter.stripingBackground #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
#---- Viewport ---- #---- Viewport ----
Viewport.background #f2f2f2 javax.swing.plaf.ColorUIResource [UI] Viewport.background #f2f2f2 javax.swing.plaf.ColorUIResource [UI]

View File

@@ -928,6 +928,7 @@ Tree.textForeground
Tree.timeFactor Tree.timeFactor
Tree.wideSelection Tree.wideSelection
TreeUI TreeUI
UIColorHighlighter.stripingBackground
Viewport.background Viewport.background
Viewport.font Viewport.font
Viewport.foreground Viewport.foreground