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

Provide a way to have an icon match ToolButton's text colour

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.10.0 Alpha
    • None
    • Quick: Controls 2
    • None

      In the following file, there is one ToolButton that uses FontAwesome for its icon (using the text property):

      https://github.com/mitchcurtis/slate/blob/999b02434c7e3d11e00a39fcf7cdddbe8436453f/app/qml/ui/IconToolBar.qml#L186

      The ToolButton that uses the text property changes its icon colour when checked, but the one using icon.source doesn't.

      It's not possible to use Material.hintTextColor (for the disabled state), otherwise I could set the icon colour myself.

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

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes