From 0d7f15e41b4f2d562da24e82536b01ced4f30dcd Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Wed, 25 Jan 2017 18:22:28 +0000 Subject: [PATCH 1/2] removed more qml errors --- .../resources/qml/hifi/tablet/Tablet.qml | 135 ++++++++---------- 1 file changed, 62 insertions(+), 73 deletions(-) diff --git a/interface/resources/qml/hifi/tablet/Tablet.qml b/interface/resources/qml/hifi/tablet/Tablet.qml index 128b3a1fd6..8f0b591da8 100644 --- a/interface/resources/qml/hifi/tablet/Tablet.qml +++ b/interface/resources/qml/hifi/tablet/Tablet.qml @@ -76,86 +76,75 @@ Item { anchors.topMargin: 0 anchors.top: parent.top - Row { - id: rowAudio1 - height: parent.height - anchors.topMargin: 0 - anchors.top: parent.top - anchors.leftMargin: 30 + + Image { + id: muteIcon + width: 40 + height: 40 + source: "../../../icons/tablet-mute-icon.svg" + anchors.verticalCenter: parent.verticalCenter + } + + Item { + id: item1 + width: 170 + height: 10 anchors.left: parent.left - anchors.rightMargin: 30 - anchors.right: parent.right - spacing: 5 - - Image { - id: muteIcon - width: 40 - height: 40 - source: "../../../icons/tablet-mute-icon.svg" - anchors.verticalCenter: parent.verticalCenter + anchors.leftMargin: 50 + anchors.verticalCenter: parent.verticalCenter + Rectangle { + id: audioBarBase + color: "#333333" + radius: 5 + anchors.fill: parent } - - Item { - id: item1 - width: 170 - height: 10 + Rectangle { + id: audioBarMask + width: parent.width * tablet.micLevel + color: "#333333" + radius: 5 + anchors.bottom: parent.bottom + anchors.bottomMargin: 0 + anchors.top: parent.top + anchors.topMargin: 0 anchors.left: parent.left - anchors.leftMargin: 50 - anchors.verticalCenter: parent.verticalCenter - Rectangle { - id: audioBarBase - color: "#333333" - radius: 5 - anchors.fill: parent - } - Rectangle { - id: audioBarMask - width: parent.width * tablet.micLevel - color: "#333333" - radius: 5 - anchors.bottom: parent.bottom - anchors.bottomMargin: 0 - anchors.top: parent.top - anchors.topMargin: 0 - anchors.left: parent.left - anchors.leftMargin: 0 - } - LinearGradient { - anchors.fill: audioBarMask - source: audioBarMask - start: Qt.point(0, 0) - end: Qt.point(170, 0) - gradient: Gradient { - GradientStop { - position: 0 - color: "#2c8e72" - } - GradientStop { - position: 0.8 - color: "#1fc6a6" - } - GradientStop { - position: 0.81 - color: "#ea4c5f" - } - GradientStop { - position: 1 - color: "#ea4c5f" - } + anchors.leftMargin: 0 + } + LinearGradient { + anchors.fill: audioBarMask + source: audioBarMask + start: Qt.point(0, 0) + end: Qt.point(170, 0) + gradient: Gradient { + GradientStop { + position: 0 + color: "#2c8e72" + } + GradientStop { + position: 0.8 + color: "#1fc6a6" + } + GradientStop { + position: 0.81 + color: "#ea4c5f" + } + GradientStop { + position: 1 + color: "#ea4c5f" } } } + } - RalewaySemiBold { - id: usernameText - text: tablet.parent.parent.username - anchors.verticalCenter: parent.verticalCenter - anchors.right: parent.right - anchors.rightMargin: 0 - horizontalAlignment: Text.AlignRight - font.pixelSize: 20 - color: "#afafaf" - } + RalewaySemiBold { + id: usernameText + text: tablet.parent.parent.username + anchors.verticalCenter: parent.verticalCenter + anchors.right: parent.right + anchors.rightMargin: 20 + horizontalAlignment: Text.AlignRight + font.pixelSize: 20 + color: "#afafaf" } } From 6671d7f9e607428635051a3ef27815aab6e0614e Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Wed, 25 Jan 2017 21:23:04 +0000 Subject: [PATCH 2/2] removed some unnessary menu item --- interface/resources/qml/hifi/tablet/TabletMouseHandler.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/resources/qml/hifi/tablet/TabletMouseHandler.qml b/interface/resources/qml/hifi/tablet/TabletMouseHandler.qml index 8b1a62e0ed..32e34e279b 100644 --- a/interface/resources/qml/hifi/tablet/TabletMouseHandler.qml +++ b/interface/resources/qml/hifi/tablet/TabletMouseHandler.qml @@ -63,7 +63,9 @@ Item { result.append({"name": item.title, "item": item}) break; case MenuItemType.Item: - result.append({"name": item.text, "item": item}) + if (item.text !== "Users Online") { + result.append({"name": item.text, "item": item}) + } break; case MenuItemType.Separator: result.append({"name": "", "item": item})