Add color to "recommended"/"custom" button texts

This commit is contained in:
fieldOfView 2018-01-24 16:56:53 +01:00
parent 1a56eae186
commit a1adce298e

View File

@ -214,6 +214,18 @@ Rectangle
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
color:
{
if(control.pressed)
{
return UM.Theme.getColor("action_button_active_text");
}
else if(control.hovered)
{
return UM.Theme.getColor("action_button_hovered_text");
}
return UM.Theme.getColor("action_button_text");
}
}
}
}