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

Material: changing primary/accent colors doesn't update dependent colors in popup and it's children

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.1
    • 5.6.0, 5.7.0 Alpha
    • Quick: Controls 2
    • None
    • de0212e51e65b578bc941c1004914a0c33c06da7

    Description

      If I set accent colour and try to use colour of text selection (which created from accent) in popup and it's children, I'll got wrong colour.

      import QtQuick 2.6
      import Qt.labs.controls 1.0
      import Qt.labs.controls.material 1.0
      
      ApplicationWindow {
          id: main
      
          visible: true
          width: 640
          height: 480
      
          Material.accent: Material.Blue
      
          Rectangle {
              anchors.fill: parent
              color: Material.textSelectionColor
          }
      
          Popup {
              id: popup
              width: 200
              height: 200
              contentItem: Label {
                  color: popup.Material.textSelectionColor
                  text: "Test text"
                  font.pixelSize: 26
              }
              Component.onCompleted: open()
          }
      
          Popup {
              width: 200
              height: 200
              x: main.width - width
              y: main.height - height
              contentItem: Label {
                  color: Material.textSelectionColor
                  text: "Test text"
                  font.pixelSize: 26
              }
              Component.onCompleted: open()
          }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            krnekit Nikita Krupenko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes