added some new controls and started layout of pageStart and pageCredentials

This commit is contained in:
vladimir.kuznetsov 2023-04-12 19:13:41 +03:00
parent ec96c1b534
commit 905a3a30f3
18 changed files with 558 additions and 4 deletions

View file

@ -0,0 +1,12 @@
import QtQuick
Text {
text: root.bodyText
wrapMode: Text.WordWrap
color: "#D7D8DB"
font.pixelSize: 16
font.weight: 400
font.family: "PT Root UI VF"
height: 24
}

View file

@ -0,0 +1,5 @@
import QtQuick
Item {
}

View file

@ -0,0 +1,23 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import "../Config"
Flickable {
id: fl
clip: true
width: parent.width
anchors.bottom: parent.bottom
anchors.left: root.left
anchors.right: root.right
anchors.rightMargin: 1
Keys.onUpPressed: scrollBar.decrease()
Keys.onDownPressed: scrollBar.increase()
ScrollBar.vertical: ScrollBar {
id: scrollBar
policy: fl.height >= fl.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
}
}

View file

@ -0,0 +1,10 @@
import QtQuick
Text {
color: "#D7D8DB"
font.pixelSize: 25
font.weight: 700
font.family: "PT Root UI VF"
height: 30
}

View file

@ -0,0 +1,40 @@
import QtQuick
import QtQuick.Layouts
ColumnLayout {
id: root
property string buttonImage
property string headerText
property var wrapMode
ImageButtonType {
id: button
Layout.leftMargin: -6
hoverEnabled: false
image: root.buttonImage
onClicked: {
if (onClickedFunc && typeof onClickedFunc === "function") {
onClickedFunc()
}
}
}
Text {
id: header
text: root.headerText
color: "#D7D8DB"
font.pixelSize: 36
font.weight: 700
font.family: "PT Root UI VF"
font.letterSpacing: -0.03
wrapMode: Text.WordWrap
height: 38
}
}

View file

@ -7,6 +7,7 @@ Item {
property string headerText
property string textFieldText
property string textFieldPlaceholderText
property bool textFieldEditable: true
implicitWidth: 328
@ -45,6 +46,9 @@ Item {
enabled: root.textFieldEditable
text: root.textFieldText
color: "#d7d8db"
placeholderText: textFieldPlaceholderText
font.pixelSize: 16
font.weight: 400
font.family: "PT Root UI VF"