GP-2962 - Theme Fixes - fixed widget bg colors to be universal; fixed tooltips to be universal; fixed odd table behavior related to old lingering values

This commit is contained in:
dragonmacher
2022-12-27 15:27:21 -05:00
parent c5e93d29cb
commit 309ba36302
17 changed files with 110 additions and 96 deletions

View File

@@ -3,6 +3,9 @@
color.bg = white // note: this is the text/widget bg color
color.fg = black
// On some LaFs the tables and tree use the bg color we define. Make that consistent for all LaFs.
[color]Viewport.background = color.bg
color.cursor.focused = red
color.cursor.unfocused = pink
@@ -13,7 +16,7 @@ color.bg.uneditable = system.color.bg.application // TODO see if there exists an
color.bg.filtered = yellow
color.fg.hint = gray
color.bg.tooltip = rgb(255, 255, 230)
color.bg.tooltip = [color]ToolTip.background
color.fg.messages.hint = color.fg.hint
color.fg.messages.alert = orange
@@ -32,7 +35,7 @@ color.fg.table.unselected = white
color.fg.error.table.unselected = color.fg.error
color.fg.error.table.selected = lightpink
color.bg.tree = [color]Tree.textBackground
color.bg.tree = color.bg
color.bg.tree.selected = [color]Tree.selectionBackground
// Fonts
@@ -123,3 +126,24 @@ color.fg.table.uneditable.unselected = lightgray
color.bg.tree = color.bg
color.bg.tree.selected = [color]Tree.selectionBackground
[Flat Dark]
// the default inactive selection color is too close to the bg color to be easily visible
color.flat.selection.inactive = #0F4C6A
[CDE/Motif]
color.bg = [color]window // gray for motif
color.fg = [color]textText
[Nimbus]
// Nimbus uses the ToolTipPainter class to paint tooltips. That class does not read the property
// we use for tooltips, which is 'ToolTip.background', even though that is defined by the LaF.
// Setting the 'info' value here to changes the key the painter users to paint tooltips. The info
// value seems to only be used for tooltips, which means this change affects no other components.
[color]info = [color]ToolTip.background