Animate button enabled state change
This commit is contained in:
		@@ -36,6 +36,7 @@ HBaseButton {
 | 
				
			|||||||
                dimension: iconDimension || contentLayout.height
 | 
					                dimension: iconDimension || contentLayout.height
 | 
				
			||||||
                transform: iconTransform
 | 
					                transform: iconTransform
 | 
				
			||||||
                opacity: button.enabled ? 1 : 0.7
 | 
					                opacity: button.enabled ? 1 : 0.7
 | 
				
			||||||
 | 
					                Behavior on opacity { HNumberAnimation {} }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                Layout.topMargin: verticalMargin
 | 
					                Layout.topMargin: verticalMargin
 | 
				
			||||||
                Layout.bottomMargin: verticalMargin
 | 
					                Layout.bottomMargin: verticalMargin
 | 
				
			||||||
@@ -51,6 +52,7 @@ HBaseButton {
 | 
				
			|||||||
                verticalAlignment: Text.AlignVCenter
 | 
					                verticalAlignment: Text.AlignVCenter
 | 
				
			||||||
                color: enabled ?
 | 
					                color: enabled ?
 | 
				
			||||||
                       theme.colors.foreground : theme.colors.foregroundDim2
 | 
					                       theme.colors.foreground : theme.colors.foregroundDim2
 | 
				
			||||||
 | 
					                Behavior on color { HNumberAnimation {} }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                Layout.fillWidth: true
 | 
					                Layout.fillWidth: true
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user