From dcf09bbf2c6f43cd83231fca07129e454dffa017 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 9 Nov 2021 14:51:48 +0200 Subject: [PATCH] QmlDesigner: Use disabled color for disabled add module button Fixes: QDS-5366 Change-Id: Ibfd761ad9c425c0a05a8668927121084dcfc5b64 Reviewed-by: Thomas Hartmann --- .../qmldesigner/itemLibraryQmlSources/LibraryHeader.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/LibraryHeader.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/LibraryHeader.qml index f5ad0eae3f2..36c823ec631 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/LibraryHeader.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/LibraryHeader.qml @@ -105,8 +105,11 @@ Item { verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter anchors.centerIn: parent - color: tabBar.currentIndex === index ? StudioTheme.Values.themeIconColorSelected - : StudioTheme.Values.themeIconColor + color: !plusButton.enabled + ? StudioTheme.Values.themeIconColorDisabled + : tabBar.currentIndex === index + ? StudioTheme.Values.themeIconColorSelected + : StudioTheme.Values.themeIconColor } HelperWidgets.ToolTipArea {