Gray out disabled button icons

This commit is contained in:
miruka 2019-08-28 18:32:16 -04:00
parent 6cda69ad67
commit e1da7be253
3 changed files with 5 additions and 3 deletions

View File

@ -3,7 +3,6 @@
- Theming - Theming
- File format - File format
- Gray colored buttons when disabled
- Make the icon blue in EditAccount when hovering and no avatar set - Make the icon blue in EditAccount when hovering and no avatar set
- Remove the filled theme - Remove the filled theme
- Have a default background - Have a default background

View File

@ -24,7 +24,7 @@ HRowLayout {
id: icon id: icon
svgName: button.icon.name svgName: button.icon.name
colorize: button.icon.color colorize: enabled ? button.icon.color: theme.icons.disabledColorize
cache: button.icon.cache cache: button.icon.cache
onLoadingChanged: if (! loading) resetAnimations.start() onLoadingChanged: if (! loading) resetAnimations.start()

View File

@ -86,7 +86,10 @@ colors:
icons: icons:
string preferredPack: "thin" string preferredPack: "thin"
color colorize: "white" // "transparent" to disable
// "transparent" to disable colorizing
color colorize: "white"
color disabledColorize: "white"
// Generic UI controls // Generic UI controls