if not flat, use button color

BUG:332138
This commit is contained in:
Marco Martin 2014-03-20 17:55:22 +01:00
parent ff7aebb1e2
commit 0205aa1ec6

View File

@ -364,7 +364,7 @@ Item {
width: parent.width - icon.width - parent.spacing
height: parent.height
color: mouse.containsMouse ? theme.buttonTextColor : theme.textColor
color: mouse.containsMouse || !button.flat ? theme.buttonTextColor : theme.textColor
Behavior on color { ColorAnimation { duration: units.shortDuration * 2 } }
elide: Text.ElideRight