Hover effects for titlebar buttons

This commit is contained in:
Sander Ferdinand
2017-12-24 21:52:29 +01:00
committed by moneromooo-monero
parent 129562594d
commit 4f3bf839f7
5 changed files with 27 additions and 9 deletions

View File

@@ -32,6 +32,7 @@ import "." 1.0
Item {
id: button
property string rightIcon: ""
property string icon: ""
property string textColor: button.enabled? Style.buttonTextColor: Style.buttonTextColorDisabled
property bool small: false
@@ -58,7 +59,6 @@ Item {
anchors.right: parent.right
height: parent.height - 1
radius: 3
// color: parent.enabled ? Style.buttonBackgroundColor : Style.buttonBackgroundColorDisabled
color: parent.enabled ? Style.buttonBackgroundColor : Style.buttonBackgroundColorDisabled
border.width: parent.focus ? 1 : 0