Plasma qml-Components ToolButton: change text-color on hover more fluently

REVIEW: 105375
REVIEWED-BY: troscher aseigo
This commit is contained in:
Johannes Tröscher 2012-06-28 19:40:33 +02:00
parent daa3c78241
commit 796211bbd5

View File

@ -211,7 +211,10 @@ Item {
font.underline: theme.defaultFont.underline font.underline: theme.defaultFont.underline
font.weight: theme.defaultFont.weight font.weight: theme.defaultFont.weight
font.wordSpacing: theme.defaultFont.wordSpacing 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 horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
} }