From 1f0215ebc6e3b21cdb9209eb3950b9b433cfbb17 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Fri, 2 Aug 2019 13:29:51 +0200 Subject: [PATCH] [ToolButtonStyle] Use same color group for hovered state This is a remnant from when we used a full background on hovered ToolButtons instead of the frame we have now. It broke icon item appearance when hovered in a custom ColorScope. Reviewed-By: notmart --- src/declarativeimports/plasmastyle/ToolButtonStyle.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml index aee58c391..0141cc2f1 100644 --- a/src/declarativeimports/plasmastyle/ToolButtonStyle.qml +++ b/src/declarativeimports/plasmastyle/ToolButtonStyle.qml @@ -80,7 +80,7 @@ QtQuickControlStyle.ButtonStyle { Layout.maximumHeight: Layout.minimumWidth Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter active: style.controlHovered - colorGroup: controlHovered || !flat ? PlasmaCore.Theme.ButtonColorGroup : PlasmaCore.ColorScope.colorGroup + colorGroup: !flat ? PlasmaCore.Theme.ButtonColorGroup : PlasmaCore.ColorScope.colorGroup } //NOTE: this is used only to check elements existence