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

Qt reports dark mode with light theme

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.2
    • GUI: Look'n'Feel
    • None
    • Linux/Wayland

    Description

      When I change my GTK theme to the light theme, Qt reports that I am using a dark theme.

      When I change my GTK theme to the dark theme, Qt also reports that I am using a dark theme.

      After inspecting the platform theme code, I found that it determines the current light/dark mode by finding the sub-string `dark` inside the theme name. This approach is unsound. The light theme that I am using is called "Arc-Darker". It has a white background, but is called "darker" because the titlebar and menubar is black:

      https://github.com/jnsh/arc-theme?tab=readme-ov-file#arc-is-available-in-four-variants

      Because the theme name has the substring "dark", Qt assumes that it is a dark theme and reports this.

       

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              whynothugo Hugo Barrera
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes