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

Fusion theme doesn't use accent color in Windows light mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.0, 6.7.0, 6.8.0
    • None
    • Windows 11 23H2
    • Windows

    Description

      When creating a Windows application using the Fusion theme, the Windows accent color is not used for highlighted text and menu items when Windows is set to light mode. On changing to dark mode the accent color shows up as expected.

      The reason for the difference is that in qwindowstheme.cpp, the dark base system palette derives the highlight color from the C++/WinRT accent color (which uses the system accent color), while the light palette derives it from the winuser.h GetSysColor function (which on my system always returns blue). I checked the git logs and PR comments and couldn't find a reason for the difference.

      Attachments

        For Gerrit Dashboard: QTBUG-130458
        # Subject Branch Project Status CR V

        Activity

          People

            owolff Oliver Wolff
            robxnano Rob Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change