[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
This commit is contained in:
Kai Uwe Broulik 2019-08-02 13:29:51 +02:00
parent 781d2f6fff
commit 1f0215ebc6

View File

@ -80,7 +80,7 @@ QtQuickControlStyle.ButtonStyle {
Layout.maximumHeight: Layout.minimumWidth Layout.maximumHeight: Layout.minimumWidth
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
active: style.controlHovered 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 //NOTE: this is used only to check elements existence