added activeText and activeIcon properties in QML

This commit is contained in:
Faye Li Si Fi 2017-01-04 12:20:41 -08:00
parent 0c2d08db4a
commit 32bc73dad3

View file

@ -6,6 +6,8 @@ Item {
property var uuid;
property string text: "EDIT"
property string icon: "icons/edit-icon.svg"
property string activeText: tabletButton.text
property string activeIcon: tabletButton.icon
property bool isActive: false
property bool inDebugMode: false
property bool isEntered: false
@ -170,12 +172,18 @@ Item {
PropertyChanges {
target: text
color: "#333333"
text: tabletButton.activeText
}
PropertyChanges {
target: iconColorOverlay
color: "#333333"
}
PropertyChanges {
target: icon
source: "../../../" + tabletButton.activeIcon
}
},
State {
name: "hover active state"