summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-09-06 12:38:20 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-09-06 12:06:22 +0000
commit462df7ade37f2600aabbb84e7c440b0dcdb741d9 (patch)
tree3adb31bf87dd6eea3cf1a3228c8ad4f9c0cb72ed /src/Authoring/Studio/Palettes
parentf54e41870176edf0b47c380fc5facd71fcf3b947 (diff)
Add hover indicator to property animation and datainput buttons
Task-number: QT3DS-2268 Change-Id: I0827bb97c6b11cd4e2fc52a7296fbe7447857b2b Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes')
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml13
-rw-r--r--src/Authoring/Studio/Palettes/Slide/SlideView.qml2
2 files changed, 9 insertions, 6 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
index 4c591e77..f0520a84 100644
--- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
+++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
@@ -171,9 +171,11 @@ Rectangle {
spacing: 0
RowLayout { // Property row
Layout.alignment: Qt.AlignLeft
- Item { // Property animation control button
+ Rectangle { // Property animation control button
width: 16
- height: _controlBaseHeight
+ height: 16
+ color: animateButtonMouseArea.containsMouse
+ ? _studioColor1 : _backgroundColor
Image {
id: animatedPropertyButton
@@ -249,11 +251,12 @@ Rectangle {
RowLayout { // Datainput button & label
Layout.alignment: Qt.AlignLeft
- Item { // Datainput control button
- Layout.alignment: Qt.AlignTop
+ Rectangle { // Datainput control button
width: 16
- height: _controlBaseHeight
+ height: 16
visible: model.modelData.controllable
+ color: dataInputButtonMouseArea.containsMouse
+ ? _studioColor1 : _backgroundColor
MouseArea {
id: dataInputButtonMouseArea
diff --git a/src/Authoring/Studio/Palettes/Slide/SlideView.qml b/src/Authoring/Studio/Palettes/Slide/SlideView.qml
index 0e5d1dcb..446494e4 100644
--- a/src/Authoring/Studio/Palettes/Slide/SlideView.qml
+++ b/src/Authoring/Studio/Palettes/Slide/SlideView.qml
@@ -346,7 +346,7 @@ Rectangle {
property string currentController: _parentView.currController
property string toolTip: _parentView.toolTip
background: Rectangle {
- color: "transparent"
+ color: controlButtonArea.containsMouse ? _studioColor1 : _backgroundColor
}
MouseArea {
id: controlButtonArea