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
          67 kB
          Patrick Wieland
        2. controls.png
          40 kB
          Nikita Krupenko
        3. DatePicker_dark.png
          85 kB
          Nikita Krupenko
        4. main.qml
          0.8 kB
          Patrick Wieland
        5. preferences.png
          33 kB
          Nikita Krupenko
        6. Screenshot_20160701-130233.png
          36 kB
          Mitch Curtis
        7. sticker_sheets_cut.png
          30 kB
          Nikita Krupenko
        For Gerrit Dashboard: QTBUG-54269
        # Subject Branch Project Status CR V

        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