Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115036

Windows 10 Dark Mode: Disabled QPushButton labels are not grayed out

XMLWordPrintable

    • Windows

      It is widely documented that the default `windowsvista` style doesn't properly support Dark Mode. However, Dark Mode nevertheless causes labels on disabled `QPushButton`s to be rendered as black, making them hard to distinguish from enabled ones. The only other older Qt version I still have installed, 5.15.2, did not have this issue.

      This can be reproduced with the TextFinder example project. After unchecking `enabled` for the `findButton` in `textfinder.ui`:

      Switching to Light Mode (either between a restart of the program or even while it is running) fixes the button label color:

      As does applying the Fusion style via `QApplication::setStyle("fusion");`, which gives the same result in both Light and Dark Mode:

        1. image-2023-07-03-21-02-55-573.png
          6 kB
          Nameless Legacy
        2. image-2023-07-03-21-03-09-433.png
          6 kB
          Nameless Legacy
        3. image-2023-07-03-21-04-13-925.png
          8 kB
          Nameless Legacy
        4. windows_light.png
          46 kB
          Markus Fleischhacker
        5. windows_dark.png
          41 kB
          Markus Fleischhacker
        6. windows_light-1.png
          46 kB
          Markus Fleischhacker
        7. windows_dark-1.png
          41 kB
          Markus Fleischhacker
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tpochep Timur Pocheptsov
            claudiohoffmann Nameless Legacy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes