Restore icon colors

This commit is contained in:
miruka
2019-08-28 18:21:13 -04:00
parent 4bee87ed5d
commit 6cda69ad67
9 changed files with 27 additions and 3 deletions

View File

@@ -78,6 +78,16 @@ Rectangle {
id: button
text: modelData.text
icon.name: modelData.iconName || ""
icon.color: modelData.iconColor || (
name == "ok" || name == "apply" || name == "retry" ?
theme.colors.positiveBackground :
name == "cancel" ?
theme.colors.negativeBackground :
theme.icons.colorize
)
enabled: (modelData.enabled == undefined ?
true : modelData.enabled) &&
! button.loading