removed more qml errors

This commit is contained in:
Dante Ruiz 2017-01-25 18:22:28 +00:00
parent 7d370fb791
commit 0d7f15e41b

View file

@ -76,86 +76,75 @@ Item {
anchors.topMargin: 0 anchors.topMargin: 0
anchors.top: parent.top anchors.top: parent.top
Row {
id: rowAudio1 Image {
height: parent.height id: muteIcon
anchors.topMargin: 0 width: 40
anchors.top: parent.top height: 40
anchors.leftMargin: 30 source: "../../../icons/tablet-mute-icon.svg"
anchors.verticalCenter: parent.verticalCenter
}
Item {
id: item1
width: 170
height: 10
anchors.left: parent.left anchors.left: parent.left
anchors.rightMargin: 30 anchors.leftMargin: 50
anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter
spacing: 5 Rectangle {
id: audioBarBase
Image { color: "#333333"
id: muteIcon radius: 5
width: 40 anchors.fill: parent
height: 40
source: "../../../icons/tablet-mute-icon.svg"
anchors.verticalCenter: parent.verticalCenter
} }
Rectangle {
Item { id: audioBarMask
id: item1 width: parent.width * tablet.micLevel
width: 170 color: "#333333"
height: 10 radius: 5
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.top: parent.top
anchors.topMargin: 0
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 50 anchors.leftMargin: 0
anchors.verticalCenter: parent.verticalCenter }
Rectangle { LinearGradient {
id: audioBarBase anchors.fill: audioBarMask
color: "#333333" source: audioBarMask
radius: 5 start: Qt.point(0, 0)
anchors.fill: parent end: Qt.point(170, 0)
} gradient: Gradient {
Rectangle { GradientStop {
id: audioBarMask position: 0
width: parent.width * tablet.micLevel color: "#2c8e72"
color: "#333333" }
radius: 5 GradientStop {
anchors.bottom: parent.bottom position: 0.8
anchors.bottomMargin: 0 color: "#1fc6a6"
anchors.top: parent.top }
anchors.topMargin: 0 GradientStop {
anchors.left: parent.left position: 0.81
anchors.leftMargin: 0 color: "#ea4c5f"
} }
LinearGradient { GradientStop {
anchors.fill: audioBarMask position: 1
source: audioBarMask color: "#ea4c5f"
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 { RalewaySemiBold {
id: usernameText id: usernameText
text: tablet.parent.parent.username text: tablet.parent.parent.username
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 0 anchors.rightMargin: 20
horizontalAlignment: Text.AlignRight horizontalAlignment: Text.AlignRight
font.pixelSize: 20 font.pixelSize: 20
color: "#afafaf" color: "#afafaf"
}
} }
} }