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
==================
## 0.46-SNAPSHOT
#### Fixed bugs
- SwingX: Fixed striping background highlighting color (e.g. alternating table
rows) in dark themes.
## 0.45
#### New features and improvements

View File

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

View File

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

View File

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

View File

@@ -26,6 +26,11 @@ JXHeader.background=@background
JXHeader.startBackground=#fff
#---- HighlighterFactory ----
UIColorHighlighter.stripingBackground=darken(@textComponentBackground,5%)
#---- Hyperlink ----
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.font [active] $defaultFont [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.rowHeight 20
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
#---- UIColorHighlighter ----
UIColorHighlighter.stripingBackground #515657 javax.swing.plaf.ColorUIResource [UI]
#---- Viewport ----
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.font [active] $defaultFont [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.rowHeight 20
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
#---- UIColorHighlighter ----
UIColorHighlighter.stripingBackground #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
#---- Viewport ----
Viewport.background #f2f2f2 javax.swing.plaf.ColorUIResource [UI]

View File

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