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

Material colors don't work as documented

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.7.1
    • Component/s: QtQuick: Controls 2
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              Wieland Patrick Wieland
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes