diff --git a/declarativeimports/plasmacomponents/qml/ToolButton.qml b/declarativeimports/plasmacomponents/qml/ToolButton.qml index 165582187..80de4633f 100644 --- a/declarativeimports/plasmacomponents/qml/ToolButton.qml +++ b/declarativeimports/plasmacomponents/qml/ToolButton.qml @@ -211,7 +211,10 @@ Item { font.underline: theme.defaultFont.underline font.weight: theme.defaultFont.weight font.wordSpacing: theme.defaultFont.wordSpacing - color: surface.opacity == 1 ? theme.buttonTextColor : theme.textColor + + color: mouse.containsMouse ? theme.buttonTextColor : theme.textColor + Behavior on color { ColorAnimation { duration: 100 } } + horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter verticalAlignment: Text.AlignVCenter }