There may be another approach for fix this.

Since OpenJDK BasicLookAndFeel.java set text background color to fixed 'white' 
color, 
it causes the issue.
https://github.com/openjdk/jdk/blob/fb8ceae0a77fecb0b14de5bd00253e074b0aba90/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java#L1657-L1678

          
            "TextPane.font", serifPlain12,
            "TextPane.background", white,
            "TextPane.foreground", textText,
            "TextPane.selectionBackground", textHighlight,
            "TextPane.selectionForeground", textHighlightText,
            "TextPane.caretForeground", textText,
            "TextPane.caretBlinkRate", caretBlinkRate,
            "TextPane.inactiveForeground", textInactiveText,
            "TextPane.border", marginBorder,
            "TextPane.margin", editorMargin,

            "EditorPane.font", serifPlain12,
            "EditorPane.background", white,
            "EditorPane.foreground", textText,
            "EditorPane.selectionBackground", textHighlight,
            "EditorPane.selectionForeground", textHighlightText,
            "EditorPane.caretForeground", textText,
            "EditorPane.caretBlinkRate", caretBlinkRate,
            "EditorPane.inactiveForeground", textInactiveText,
            "EditorPane.border", marginBorder,
            "EditorPane.margin", editorMargin,

One idea is that we can change 'TextPane.background' to 'text' instead of 
'white'.
It would make side effects around all default LaFs other than Aqua.

My proposed patch is a quick hack only to effect against GTKLaF.

-- 
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:
  Missing TextPane.background property in GTKLookAndFeel causes white
  background 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

Reply via email to