mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Toggle-off problem: applyExplicitOverrides was storing plain java.awt.Color values via UIManager.put. LookAndFeel.installColorsAndFont only replaces a component's existing colour when it is null or an instance of UIResource - plain Colors are not, so once a component picked up its dark colour it kept that colour for the rest of the JVM lifetime even after toggling back to light mode. Switching every override to ColorUIResource lets subsequent updateComponentTreeUI calls replace the cached colour cleanly. Chart visibility: the JavaFX charts on the Channel tab (NoiseSquelchView) were inheriting Modena's default 8-colour series palette, which has several hues that read poorly against a dark plot background. The existing sdrtrunk_style.css also hardcodes .chart-symbol to solid black. Override .default-color0..7.chart-series-line and matching .chart-line-symbol selectors with a brighter high-contrast palette, darken the plot background to #1c1c1c for stronger contrast against the grid lines, and add explicit colours for axis tick marks, alternate row fills and legend border.