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

Material colors don't work as documented

XMLWordPrintable

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

      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)

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes