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

Qt Quick Dialog colors are wrong when switching themes

    XMLWordPrintable

Details

    • All
    • f6648c67c (dev), e9cb21dac (6.9), 0612c6d86 (6.8), 68061bec6 (tqtc/lts-6.5)

    Description

      When opening a Quick Dialog and switching the theme from light to dark mode or vice versa, the dialogButtonBox and the text have wrong colors, making it unreadable.

      Reproduces with Fusion style, FluentWinUI3, macOS.

      Sample application to reproduce the palette propagation issue:

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Layouts
      
      ApplicationWindow {
          id: window
          width: 640
          height: 480
          visible: true    
          Pane {
              id: paneControl
              anchors.fill: parent
              property Component component: Button {
                  id: button
                  text: "Open popup"
                  onClicked: {
                      popup.open()
                  }
                  Popup {
                      id: popup
                      width: 100
                      height: 100
                      contentItem: Button {
                          id: popupButton
                          text: "Im Button"
                          width: 50
                          height: 50
                      }
                  }
              }
              // Loader { // Palette propagation works perfectly fine here
              //     id: loader
              //     sourceComponent: paneControl.component
              // }
              ListView {
                  id: listView
                  anchors.fill: parent
                  spacing: 30
                  visible: true
                  model: 1
                  delegate: ColumnLayout {
                      Loader { // Palette propagation doesn't works here
                          id: loader
                          sourceComponent: paneControl.component
                      }
                  }
              }
          }
      }
       

      Attachments

        Issue Links

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

          Activity

            People

              dorisverria Doris Verria
              dorisverria Doris Verria
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: