openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #14130
[Bug 1894419] Re: Missing TextPane.background property in GTKLookAndFeel causes white background on dark theme
[Expired for openjdk-lts (Ubuntu) because there has been no activity for
60 days.]
** Changed in: openjdk-lts (Ubuntu)
Status: Incomplete => Expired
--
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:
Missing TextPane.background property in GTKLookAndFeel causes white
background on dark theme
Status in openjdk-lts package in Ubuntu:
Expired
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 when getting "TextPane.background" it returns 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
References