mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:49:12 +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 var uuid;
|
||||||
property string text: "EDIT"
|
property string text: "EDIT"
|
||||||
property string icon: "icons/edit-icon.svg"
|
property string icon: "icons/edit-icon.svg"
|
||||||
|
property string activeText: tabletButton.text
|
||||||
|
property string activeIcon: tabletButton.icon
|
||||||
property bool isActive: false
|
property bool isActive: false
|
||||||
property bool inDebugMode: false
|
property bool inDebugMode: false
|
||||||
property bool isEntered: false
|
property bool isEntered: false
|
||||||
|
@ -170,12 +172,18 @@ Item {
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: text
|
target: text
|
||||||
color: "#333333"
|
color: "#333333"
|
||||||
|
text: tabletButton.activeText
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: iconColorOverlay
|
target: iconColorOverlay
|
||||||
color: "#333333"
|
color: "#333333"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
target: icon
|
||||||
|
source: "../../../" + tabletButton.activeIcon
|
||||||
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "hover active state"
|
name: "hover active state"
|
||||||
|
|
Loading…
Reference in a new issue