openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #14012
[Bug 1894419] [NEW] Wrong TextPane.background color with GTKLookAndFeel on dark theme
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 OpenJDK,
which is subscribed to openjdk-lts in Ubuntu.
https://bugs.launchpad.net/bugs/1894419
Title:
Wrong TextPane.background color with GTKLookAndFeel on dark theme
Status in openjdk-lts package in Ubuntu:
New
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1894419/+subscriptions
Follow ups