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

Title bar color for Windows dark theme

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.5.0
    • None
    • Windows 11
    • Windows

    Description

      I using dark theme on Windows 11.
      And developing Qt Quick application.

      I set "darkmode" to 1.

      qputenv("QT_QPA_PLATFORM", "windows:darkmode=1");

      This setting causes the application title bar to drawn light.
      Also, when "darkmode" is 0 or 2, it is drawn dark.

      • (4-23-2023 fix) When "darkmode" is unset or 2, it is drawn dark.

      The Qt 6.5 release note say:

      43ef22045c Windows: Turn on dark mode support by default
      Dark mode, both for the window frames and for the palette, is now
      supported by default. It can be turned off (partially or entirely) by
      setting the QPA parameter "darkmode=0" (no dark mode support) or
      "darkmode=1" (darkmode support only for the window frames).

      I expected the title bar to be drawn dark when "darkmode" is 1, but it is actually drawn light.

      Is this behavior correct?
      Or do I have to provide the color palette myself?

      Attachments

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

        Activity

          People

            santhoshkumar Santhosh Kumar Selvaraj
            shinichi_fuchita shinichi_fuchita
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes