Public bug reported: OpenJDK provide GTKLookAndFeel for Ubuntu and other Linux desktop when using Gnome and GTK based environment. When setting dark theme (such as adwaita-dark) from operating system preference, GTK LAF changes its colors (great!).
Unfortunately "TextPane.background" become always 'white' so edit pane become a "white-out", that means both background and font are white. It is because GTK LaF inherit from Synth Laf, which is extend BasicLookAndFeel, and TextPane.background is defined in BasicLookAndFeel as follows: ``` "TextPane.background", white, ``` Since GTK LaF respect desktop theme such as dark, so it should be also change based on the desktop configuration. I've attached a patch to solve it. ** Affects: openjdk-lts (Ubuntu) Importance: Undecided Status: New ** Patch added: "Fix openjdk GTK LaF color bug" https://bugs.launchpad.net/bugs/1894419/+attachment/5408045/+files/gtk-laf-textpane-respect-dark-mode.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1894419 Title: Wrong TextPane.background color with GTKLookAndFeel on dark theme To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1894419/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs