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

Get rid of that pesky forceful dark mode intrusion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 6.5.0
    • Widgets: Styles
    • None
    • Windows

    Description

      Since 6.5.0, there is new infamous dark mode detection which automatically switches to dark palette when system "dark mode" is enabled, resulting in dark "Fusion" (and some others) style.

      I do want to have some option to DISABLE this new behavior which actually breaks some older applications!

      The culprit seems to be this piece of code from

      https://github.com/qt/qtbase/blob/dev/src/gui/kernel/qplatformtheme.cpp#L358

      Now, all old application newly compiled with Qt 6.5.0 switch to dark mode (if system is dark mode), which is not always desired.

      I want to have some easy to set property (for example via "QStyleHintsPrivate::setColorScheme).

      Also, add a property to "QStyle" (and subclasses) which says if the particular style actually supports "dark mode" or not as again - this is now hardcoded in styles and the information is impossible to have in apps. It was already there but was reverted out.

      https://github.com/qt/qtbase/commit/c62c2aac752c6b63d5afd2f7a10dd9f43c99ae7b

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vhilshei Volker Hilsheimer
              skunkos Martin Rotter
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes