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

Material.System does not work on Ubuntu (Gnome)

    XMLWordPrintable

Details

    • Linux/X11
    • 2b77e779ce43386d14bdd2d1109ee182bcd0d047 (qt/qtbase/dev) 12efdab6c70b24538d2ce4f679e74c42e98a9947 (qt/qtbase/6.2), 7b64eb71c (dev), 747a4de31 (6.5)

    Description

      When setting 

      Material.theme: Material.System

      on Ubuntu 20.04 with Dark Mode enabled, qml does not seems to recognize that the system is in Dark Mode.

      To reproduce:

      ApplicationWindow {
          width: 640
          height: 480
          visible: true
      
          Material.theme: Material.System // set in qtquickcontrols2.conf
      
          Label {
              anchors.centerIn: parent
              text: Material.theme === Material.Dark ? "Dark" : "Light"
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: