Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8347956

JButton & JToggleButton text Color does not change when switching between Light & Dark Style in GTK LookAndFeel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 20, 22, 23, 24
    • client-libs
    • None
    • x86
    • linux_ubuntu

      I am trying to switch between Default ( light ) to Dark or Dark & Default ( light ) . I am seeing that JButton & JToggleButton text Color does not change . I have to press on the Button's to change its text Color on Ubuntu 24.04 & Ubuntu 24.10

      Step to reproduce
      -------------------------
      1) Run swing/AbstractButton/4105766/bug4105766.java in GTK LookAndFeel
      2) Open Setting -> Appearance - Style - Dark
      3) Observe the JButton & JToggleButton the background of the all the components are in yellow & text are in white
      4) Change Style from Dark to Default ( light )
      Observe that JCheckBox & JRadioButton text are changed but JButton & JToggleButton remains the same if you see the same then the bug is reprodiuced
      5) Click on JButton & JToggleButton and Observe that Text color gets changed.

            abhiscxk Abhishek Kumar
            landrews Lawrence Andrews
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: