mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 03:38:28 +02:00
added activeText and activeIcon properties in QML
This commit is contained in:
parent
0c2d08db4a
commit
32bc73dad3
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue