From 32bc73dad3cf6cc9f042de1f9edebc2820d38459 Mon Sep 17 00:00:00 2001 From: Faye Li Si Fi Date: Wed, 4 Jan 2017 12:20:41 -0800 Subject: [PATCH] added activeText and activeIcon properties in QML --- interface/resources/qml/hifi/tablet/TabletButton.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/interface/resources/qml/hifi/tablet/TabletButton.qml b/interface/resources/qml/hifi/tablet/TabletButton.qml index 5dfef31112..636b6dbebc 100644 --- a/interface/resources/qml/hifi/tablet/TabletButton.qml +++ b/interface/resources/qml/hifi/tablet/TabletButton.qml @@ -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"