mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Symptom: With dark mode enabled, the Swing main window's spectrum chrome and menu bar were dark (FlatLaf) but tables, tabbed panes and the inner content area were light/Metal coloured. Root cause: LookAndFeelFactory.installJideExtension installs JIDE's Metal-flavored UI defaults (VsnetMetalUtils etc.) into the live UIDefaults table, overwriting FlatLaf's standard component colors and fonts for keys like Table.background, TabbedPane.foreground, Panel.background. Fix: After the JIDE install, walk a fresh FlatLaf UIDefaults table and put every key back into the active defaults, skipping anything Jide-prefixed. JIDE's UI delegate registrations live under Jide* keys that FlatLaf does not define, so they survive untouched while the standard Swing color and font keys are restored to their dark equivalents. Also strengthen the JavaFX dark stylesheet: explicit borders on text fields, tables, titled panes, split-pane dividers and separators so components have more defining outlines in dark mode.