QML Fixes

This commit is contained in:
Pokamest Nikak 2021-09-08 21:24:09 +03:00
parent 62262a3572
commit 3175bc1e48
25 changed files with 535 additions and 791 deletions

View file

@ -4,6 +4,11 @@ import QtQuick.Controls 2.12
BasicButtonType {
id: root
width: parent.width - 80
height: 40
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 20
background: Rectangle {
anchors.fill: parent
radius: 4

View file

@ -0,0 +1,17 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
Text {
font.family: "Lato"
font.styleName: "normal"
font.pixelSize: 24
color: "#100A44"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
x: 10
y: 35
width: parent.width - 40
anchors.horizontalCenter: parent.horizontalCenter
wrapMode: Text.Wrap
//height: 31
}

View file

@ -20,5 +20,6 @@ CheckBox {
color: "#181922"
verticalAlignment: Text.AlignVCenter
leftPadding: root.indicator.width + root.spacing
wrapMode: Text.Wrap
}
}

View file

@ -2,6 +2,10 @@ import QtQuick 2.12
Text {
id: root
x: 40
width: parent.width
anchors.topMargin: 10
font.family: "Lato"
font.styleName: "normal"
font.pixelSize: 16
@ -10,3 +14,4 @@ Text {
verticalAlignment: Text.AlignVCenter
wrapMode: Text.Wrap
}

View file

@ -0,0 +1,12 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
Image {
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: 30
// width: GC.trW(150)
// height: GC.trH(22)
// y: GC.trY(590)
source: "qrc:/images/AmneziaVPN.png"
}

View file

@ -4,7 +4,11 @@ import QtQuick.Controls 2.12
TextField {
id: root
property bool error: false
// font.
width: parent.width - 80
height: 40
anchors.topMargin: 5
selectionColor: "darkgray"
font.pixelSize: 16
color: "#333333"