Hi, here is the reproducer;
OpenJDK version/OS version:
openjdk 11.0.8 2020-07-14 / Mint Linux 20
openjdk 1.8.0_265 / Ubuntu 20.04
import java.awt.*;
import javax.swing.*;
import javax.swing.text.html.HTMLDocument;
import javax.swing.text.html.StyleSheet;
public class Example {
** Attachment added: "screen capture on Mint Linux 20 dark mode with reproducer"
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1894419/+attachment/5416410/+files/mint-dark-mode-reproduce.png
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is
Forgot to add what happened in my case.
- background was dark
- text was white
I modified the code a bit to simplify it:
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JTextPane;
public class Example {
public Example() {
Thank you for taking the time to report this bug and helping to make
Ubuntu better.
I tried the code in https://stackoverflow.com/a/31928409 with Ayu-
Mirage-Dark and I couldn't reproduce the issue.
Please provide the following items:
- a reproducer with actual code
- the exact OpenJDK version
-
The attachment "Fix openjdk GTK LaF color bug" seems to be a patch. If
it isn't, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are a member of the ~ubuntu-reviewers,
unsubscribe the team.
[This is an automated message performed by a Launchpad user owned