QmlDesigner: Use disabled color for disabled add module button

Fixes: QDS-5366
Change-Id: Ibfd761ad9c425c0a05a8668927121084dcfc5b64
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2021-11-09 14:51:48 +02:00
parent 305c91f42a
commit dcf09bbf2c

View File

@@ -105,8 +105,11 @@ Item {
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
anchors.centerIn: parent anchors.centerIn: parent
color: tabBar.currentIndex === index ? StudioTheme.Values.themeIconColorSelected color: !plusButton.enabled
: StudioTheme.Values.themeIconColor ? StudioTheme.Values.themeIconColorDisabled
: tabBar.currentIndex === index
? StudioTheme.Values.themeIconColorSelected
: StudioTheme.Values.themeIconColor
} }
HelperWidgets.ToolTipArea { HelperWidgets.ToolTipArea {