Skip to content
Snippets Groups Projects
Commit 9e5871cd authored by Evgenii Tagiltsev's avatar Evgenii Tagiltsev
Browse files

[*] added design for vpn screen

parent 71454057
No related branches found
No related tags found
1 merge request!33Bugs 2597
Pipeline #1030 passed with stage
in 3 minutes and 19 seconds
import QtQuick 2.4 import QtQuick 2.4
import QtQuick.Controls 2.5 import QtQuick.Controls 2.5
import QtQuick.Controls.Styles 1.4
import QtGraphicalEffects 1.0
Item { Item {
width: 400 width: 400
height: 600 height: 600
Text { Text {
id: titleVpn anchors.left: parent.left
anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top
anchors.leftMargin: 30 * pt
anchors.topMargin: 18 * pt
color: "#d61f5d"
font.family: "Roboto Regular"
font.pixelSize: 14 * pt
text: "283 days left"
}
Row {
width: childrenRect.width
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 50 anchors.topMargin: 40 * pt
anchors.horizontalCenter: parent.horizontalCenter
Image {
id: imageVpn
width: 48 * pt
height: 48 * pt
source: "qrc:/Resources/Icons/defaul_icon.png"
}
text: "VPN" Text {
font.family: "Roboto" id: titleVpn
font.pixelSize: 42 * pt anchors.left: imageVpn.right
anchors.verticalCenter: imageVpn.verticalCenter
anchors.leftMargin: 10 * pt
text: "KELVPN"
font.family: "Roboto Regular"
font.pixelSize: 42 * pt
}
} }
Switch { Switch {
id: control id: control
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
...@@ -59,25 +86,62 @@ Item { ...@@ -59,25 +86,62 @@ Item {
} }
ComboBox { ComboBox {
id: comboboxServer
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: 40 * pt anchors.bottomMargin: 40 * pt
width: 150 * pt
height: 48 * pt
textRole: "name" textRole: "name"
model: ListModel { model: ListModel {
ListElement {name: "first"} id: modelTest
ListElement {name: "second"} ListElement {name: "first"; icon: "qrc:/Resources/Icons/defaul_icon.png" }
ListElement {name: "second"; icon: "qrc:/Resources/Icons/defaul_icon.png" }
} }
delegate: ItemDelegate { background: Rectangle {
Text { anchors.fill: parent
Rectangle {
id: contentCorner
anchors.fill: parent anchors.fill: parent
text: name color: "#FFFFFF"
radius: width / 2
}
DropShadow {
anchors.fill: parent
source: contentCorner
verticalOffset: 4 * pt
samples: 13 * pt
color: "#40000000"
}
}
contentItem: Rectangle {
anchors.fill: parent
color: "transparent"
Image {
id: imageServer
anchors.left: parent.left
anchors.leftMargin: 22 * pt
anchors.verticalCenter: parent.verticalCenter
source: modelTest.get(modelTest.index(comboboxServer.currentIndex, 0)).icon
width: 24 * pt
height: 24 * pt
}
Text {
anchors.left: imageServer.right
anchors.leftMargin: 10 * pt
anchors.verticalCenter: parent.verticalCenter
text: comboboxServer.currentText
font.family: "Roboto Light"
font.pixelSize: 16 * pt
} }
} }
// background: Rectangle {
// radius: parent.height / 2
// }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment