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

Material colors don't work as documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • Linux x86_64

    Description

      With QtQuick.Controls.Material 2 color assignment is documented to work like this:

      Material.accent: Material.Red

      But this yields the wrong color. Instead only the following works correctly:

      Material.accent: Material.color(Material.Red)

      See attached screenshot (incl. demo code)

      Attachments

        1. colors.png
          colors.png
          67 kB
        2. controls.png
          controls.png
          40 kB
        3. DatePicker_dark.png
          DatePicker_dark.png
          85 kB
        4. main.qml
          0.8 kB
        5. preferences.png
          preferences.png
          33 kB
        6. Screenshot_20160701-130233.png
          Screenshot_20160701-130233.png
          36 kB
        7. sticker_sheets_cut.png
          sticker_sheets_cut.png
          30 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            Wieland Patrick Wieland
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes