added PageSetupWizardCredentials and PageSetupWizardProtocols
- fixed hover and pressed effects for controls
This commit is contained in:
parent
905a3a30f3
commit
3d63d6c0f2
12 changed files with 314 additions and 68 deletions
|
|
@ -185,8 +185,10 @@
|
||||||
<file>ui/qml/Controls2/BodyTextType.qml</file>
|
<file>ui/qml/Controls2/BodyTextType.qml</file>
|
||||||
<file>ui/qml/Controls2/FlickableType.qml</file>
|
<file>ui/qml/Controls2/FlickableType.qml</file>
|
||||||
<file>ui/qml/Controls2/Header2TextType.qml</file>
|
<file>ui/qml/Controls2/Header2TextType.qml</file>
|
||||||
<file>ui/qml/Pages2/PageCredentials.qml</file>
|
<file>ui/qml/Pages2/PageSetupWizardCredentials.qml</file>
|
||||||
<file>ui/qml/Controls2/HeaderTextType.qml</file>
|
<file>ui/qml/Controls2/HeaderTextType.qml</file>
|
||||||
<file>images/controls/arrow-left.svg</file>
|
<file>images/controls/arrow-left.svg</file>
|
||||||
|
<file>ui/qml/Pages2/PageSetupWizardProtocols.qml</file>
|
||||||
|
<file>ui/qml/Pages2/PageSetupWizardEasy.qml</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,9 @@ enum class Page {Start = 0, NewServer, NewServerProtocols, Vpn,
|
||||||
Wizard, WizardLow, WizardMedium, WizardHigh, WizardVpnMode, ServerConfiguringProgress,
|
Wizard, WizardLow, WizardMedium, WizardHigh, WizardVpnMode, ServerConfiguringProgress,
|
||||||
GeneralSettings, AppSettings, NetworkSettings, ServerSettings,
|
GeneralSettings, AppSettings, NetworkSettings, ServerSettings,
|
||||||
ServerContainers, ServersList, ShareConnection, Sites,
|
ServerContainers, ServersList, ShareConnection, Sites,
|
||||||
ProtocolSettings, ProtocolShare, QrDecoder, QrDecoderIos, About, ViewConfig, AdvancedServerSettings, Test, Credentials};
|
ProtocolSettings, ProtocolShare, QrDecoder, QrDecoderIos, About, ViewConfig, AdvancedServerSettings,
|
||||||
|
|
||||||
|
Test, WizardCredentials, WizardProtocols, WizardEasySetup};
|
||||||
Q_ENUM_NS(Page)
|
Q_ENUM_NS(Page)
|
||||||
|
|
||||||
static void declareQmlPageEnum() {
|
static void declareQmlPageEnum() {
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,17 @@ RadioButton {
|
||||||
property string bodyText
|
property string bodyText
|
||||||
property string footerText
|
property string footerText
|
||||||
|
|
||||||
property string hoveredColor: Qt.rgba(255, 255, 255, 0.05)
|
property string hoveredColor: Qt.rgba(1, 1, 1, 0.05)
|
||||||
property string defaultColor: Qt.rgba(255, 255, 255, 0)
|
property string defaultColor: Qt.rgba(1, 1, 1, 0)
|
||||||
property string disabledColor: Qt.rgba(255, 255, 255, 0)
|
property string disabledColor: Qt.rgba(1, 1, 1, 0)
|
||||||
property string pressedColor: Qt.rgba(255, 255, 255, 0.05)
|
property string pressedColor: Qt.rgba(1, 1, 1, 0.05)
|
||||||
|
property string selectedColor: Qt.rgba(1, 1, 1, 0)
|
||||||
|
|
||||||
property string textColor: "#0E0E11"
|
property string textColor: "#0E0E11"
|
||||||
|
|
||||||
property string pressedBorderColor: Qt.rgba(251, 178, 106, 0.3)
|
property string pressedBorderColor: Qt.rgba(251/255, 178/255, 106/255, 0.3)
|
||||||
property string hoveredBorderColor: "transparent"
|
property string selectedBorderColor: "#FBB26A"
|
||||||
property string defaultBodredColor: "#FBB26A"
|
property string defaultBodredColor: "transparent"
|
||||||
property int borderWidth: 0
|
property int borderWidth: 0
|
||||||
|
|
||||||
implicitWidth: content.implicitWidth
|
implicitWidth: content.implicitWidth
|
||||||
|
|
@ -32,30 +33,34 @@ RadioButton {
|
||||||
|
|
||||||
color: {
|
color: {
|
||||||
if (root.enabled) {
|
if (root.enabled) {
|
||||||
if(root.checked) {
|
if (root.hovered) {
|
||||||
return pressedColor
|
return hoveredColor
|
||||||
|
} else if (root.checked) {
|
||||||
|
return selectedColor
|
||||||
}
|
}
|
||||||
return hovered ? hoveredColor : defaultColor
|
return defaultColor
|
||||||
} else {
|
} else {
|
||||||
return disabledColor
|
return disabledColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
border.color: {
|
border.color: {
|
||||||
if (root.enabled) {
|
if (root.enabled) {
|
||||||
if(root.checked) {
|
if (root.pressed) {
|
||||||
return pressedBorderColor
|
return pressedBorderColor
|
||||||
|
} else if (root.checked) {
|
||||||
|
return selectedBorderColor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return hovered ? hoveredBorderColor : defaultBodredColor
|
|
||||||
} else {
|
|
||||||
return defaultBodredColor
|
return defaultBodredColor
|
||||||
}
|
}
|
||||||
}
|
|
||||||
border.width: {
|
border.width: {
|
||||||
if (root.enabled) {
|
if (root.enabled) {
|
||||||
if(root.checked) {
|
if(root.checked) {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
return hovered ? 0 : 1
|
return root.pressed ? 1 : 0
|
||||||
} else {
|
} else {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
@ -64,6 +69,9 @@ RadioButton {
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
PropertyAnimation { duration: 200 }
|
PropertyAnimation { duration: 200 }
|
||||||
}
|
}
|
||||||
|
Behavior on border.color {
|
||||||
|
PropertyAnimation { duration: 200 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import Qt5Compat.GraphicalEffects
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property string hoveredColor: Qt.rgba(255, 255, 255, 0.05)
|
property string hoveredColor: Qt.rgba(1, 1, 1, 0.05)
|
||||||
property string defaultColor: "transparent"
|
property string defaultColor: "transparent"
|
||||||
property string pressedColor: Qt.rgba(255, 255, 255, 0.05)
|
property string pressedColor: Qt.rgba(1, 1, 1, 0.05)
|
||||||
|
|
||||||
property string defaultBorderColor: "#D7D8DB"
|
property string defaultBorderColor: "#D7D8DB"
|
||||||
property string checkedBorderColor: "#FBB26A"
|
property string checkedBorderColor: "#FBB26A"
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,29 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
ColumnLayout {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property string buttonImage
|
property string buttonImage
|
||||||
property string headerText
|
property string headerText
|
||||||
property var wrapMode
|
property string descriptionText
|
||||||
|
|
||||||
|
implicitWidth: content.implicitWidth
|
||||||
|
implicitHeight: content.implicitHeight
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: content
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
ImageButtonType {
|
ImageButtonType {
|
||||||
id: button
|
id: backButton
|
||||||
|
|
||||||
Layout.leftMargin: -6
|
Layout.leftMargin: -6
|
||||||
|
|
||||||
hoverEnabled: false
|
|
||||||
image: root.buttonImage
|
image: root.buttonImage
|
||||||
|
imageColor: "#D7D8DB"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (onClickedFunc && typeof onClickedFunc === "function") {
|
UiLogic.closePage()
|
||||||
onClickedFunc()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -36,5 +41,24 @@ ColumnLayout {
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
height: 38
|
height: 38
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: description
|
||||||
|
|
||||||
|
text: root.descriptionText
|
||||||
|
|
||||||
|
color: "#878B91"
|
||||||
|
font.pixelSize: 16
|
||||||
|
font.weight: 400
|
||||||
|
font.family: "PT Root UI VF"
|
||||||
|
font.letterSpacing: -0.03
|
||||||
|
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
|
height: 24
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ Button {
|
||||||
|
|
||||||
property string image
|
property string image
|
||||||
|
|
||||||
property string hoveredColor: Qt.rgba(255, 255, 255, 0.08)
|
property string hoveredColor: Qt.rgba(1, 1, 1, 0.08)
|
||||||
property string defaultColor: "transparent"
|
property string defaultColor: "transparent"
|
||||||
property string pressedColor: Qt.rgba(255, 255, 255, 0.12)
|
property string pressedColor: Qt.rgba(1, 1, 1, 0.12)
|
||||||
|
|
||||||
property string imageColor: "#878B91"
|
property string imageColor: "#878B91"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,26 +6,50 @@ Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property string text
|
property string text
|
||||||
|
property string descriptionText
|
||||||
|
|
||||||
property var onClickedFunc
|
property var onClickedFunc
|
||||||
property alias buttonImage : button.image
|
property alias buttonImage : button.image
|
||||||
|
|
||||||
implicitWidth: 360
|
implicitWidth: content.implicitWidth
|
||||||
implicitHeight: 72
|
implicitHeight: content.implicitHeight
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
id: content
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
Text {
|
Text {
|
||||||
font.family: "PT Root UI"
|
font.family: "PT Root UI"
|
||||||
font.styleName: "normal"
|
font.styleName: "normal"
|
||||||
font.pixelSize: 18
|
font.pixelSize: 18
|
||||||
color: "#d7d8db"
|
color: "#d7d8db"
|
||||||
text: root.text
|
text: root.text
|
||||||
|
|
||||||
|
Layout.fillWidth: true
|
||||||
|
height: 22
|
||||||
|
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
font.family: "PT Root UI"
|
||||||
|
font.styleName: "normal"
|
||||||
|
font.pixelSize: 13
|
||||||
|
font.letterSpacing: 0.02
|
||||||
|
color: "#878B91"
|
||||||
|
text: root.descriptionText
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
|
Layout.fillWidth: true
|
||||||
|
height: 16
|
||||||
|
|
||||||
|
horizontalAlignment: Text.AlignLeft
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ImageButtonType {
|
ImageButtonType {
|
||||||
id: button
|
id: button
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,12 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "#1c1d21"
|
color: "#1c1d21"
|
||||||
radius: 16
|
radius: 16
|
||||||
border.color: "#d7d8db"
|
border.color: textField.focus ? "#d7d8db" : "#2C2D30"
|
||||||
border.width: textField.focus ? 1 : 0
|
border.width: 1
|
||||||
|
|
||||||
|
Behavior on border.color {
|
||||||
|
PropertyAnimation { duration: 200 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import "../Config"
|
||||||
|
|
||||||
PageBase {
|
PageBase {
|
||||||
id: root
|
id: root
|
||||||
page: PageEnum.Credentials
|
page: PageEnum.WizardCredentials
|
||||||
|
|
||||||
FlickableType {
|
FlickableType {
|
||||||
id: fl
|
id: fl
|
||||||
|
|
@ -32,15 +32,11 @@ PageBase {
|
||||||
|
|
||||||
HeaderTextType {
|
HeaderTextType {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.bottomMargin: 16
|
Layout.topMargin: 20
|
||||||
Layout.topMargin: 66
|
|
||||||
|
|
||||||
Layout.preferredWidth: 328
|
|
||||||
|
|
||||||
buttonImage: "qrc:/images/controls/arrow-left.svg"
|
buttonImage: "qrc:/images/controls/arrow-left.svg"
|
||||||
|
|
||||||
headerText: "Подключение к серверу"
|
headerText: "Подключение к серверу"
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TextFieldWithHeaderType {
|
TextFieldWithHeaderType {
|
||||||
|
|
@ -60,23 +56,31 @@ PageBase {
|
||||||
|
|
||||||
BasicButtonType {
|
BasicButtonType {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 40
|
Layout.topMargin: 24
|
||||||
|
|
||||||
text: qsTr("Настроить сервер простым образом")
|
text: qsTr("Настроить сервер простым образом")
|
||||||
|
|
||||||
|
onClicked: function() {
|
||||||
|
UiLogic.goToPage(PageEnum.WizardEasySetup)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BasicButtonType {
|
BasicButtonType {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: 8
|
Layout.topMargin: -8
|
||||||
|
|
||||||
defaultColor: "transparent"
|
defaultColor: "transparent"
|
||||||
hoveredColor: Qt.rgba(255, 255, 255, 0.08)
|
hoveredColor: Qt.rgba(1, 1, 1, 0.08)
|
||||||
pressedColor: Qt.rgba(255, 255, 255, 0.12)
|
pressedColor: Qt.rgba(1, 1, 1, 0.12)
|
||||||
disabledColor: "#878B91"
|
disabledColor: "#878B91"
|
||||||
textColor: "#D7D8DB"
|
textColor: "#D7D8DB"
|
||||||
borderWidth: 1
|
borderWidth: 1
|
||||||
|
|
||||||
text: qsTr("Выбрать протокол для установки")
|
text: qsTr("Выбрать протокол для установки")
|
||||||
|
|
||||||
|
onClicked: function() {
|
||||||
|
UiLogic.goToPage(PageEnum.WizardProtocols)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
74
client/ui/qml/Pages2/PageSetupWizardEasy.qml
Normal file
74
client/ui/qml/Pages2/PageSetupWizardEasy.qml
Normal file
|
|
@ -0,0 +1,74 @@
|
||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
import PageEnum 1.0
|
||||||
|
|
||||||
|
import "./"
|
||||||
|
import "../Pages"
|
||||||
|
import "../Controls2"
|
||||||
|
import "../Config"
|
||||||
|
|
||||||
|
PageBase {
|
||||||
|
id: root
|
||||||
|
page: PageEnum.WizardEasySetup
|
||||||
|
|
||||||
|
FlickableType {
|
||||||
|
id: fl
|
||||||
|
anchors.top: root.top
|
||||||
|
anchors.bottom: root.bottom
|
||||||
|
contentHeight: content.height
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: content
|
||||||
|
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 16
|
||||||
|
anchors.leftMargin: 16
|
||||||
|
|
||||||
|
spacing: 16
|
||||||
|
|
||||||
|
HeaderTextType {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: 20
|
||||||
|
|
||||||
|
buttonImage: "qrc:/images/controls/arrow-left.svg"
|
||||||
|
|
||||||
|
headerText: "Какой уровень контроля интернета в вашем регионе?"
|
||||||
|
}
|
||||||
|
|
||||||
|
CardType {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
headerText: "Высокий"
|
||||||
|
bodyText: "Многие иностранные сайты и VPN-провайдеры заблокированы"
|
||||||
|
}
|
||||||
|
|
||||||
|
CardType {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
checked: true
|
||||||
|
|
||||||
|
headerText: "Средний"
|
||||||
|
bodyText: "Некоторые иностранные сайты заблокированы, но VPN-провайдеры не блокируются"
|
||||||
|
}
|
||||||
|
|
||||||
|
CardType {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
headerText: "Низкий"
|
||||||
|
bodyText: "Хочу просто повысить уровень приватности"
|
||||||
|
}
|
||||||
|
|
||||||
|
BasicButtonType {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: 24
|
||||||
|
Layout.bottomMargin: 32
|
||||||
|
|
||||||
|
text: qsTr("Продолжить")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
102
client/ui/qml/Pages2/PageSetupWizardProtocols.qml
Normal file
102
client/ui/qml/Pages2/PageSetupWizardProtocols.qml
Normal file
|
|
@ -0,0 +1,102 @@
|
||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
import SortFilterProxyModel 0.2
|
||||||
|
|
||||||
|
import PageEnum 1.0
|
||||||
|
import ProtocolEnum 1.0
|
||||||
|
|
||||||
|
import "./"
|
||||||
|
import "../Pages"
|
||||||
|
import "../Controls2"
|
||||||
|
import "../Config"
|
||||||
|
|
||||||
|
PageBase {
|
||||||
|
id: root
|
||||||
|
page: PageEnum.WizardProtocols
|
||||||
|
|
||||||
|
SortFilterProxyModel {
|
||||||
|
id: containersModel
|
||||||
|
sourceModel: UiLogic.containersModel
|
||||||
|
filters: [
|
||||||
|
ValueFilter {
|
||||||
|
roleName: "is_installed_role"
|
||||||
|
value: false
|
||||||
|
},
|
||||||
|
ValueFilter {
|
||||||
|
roleName: "service_type_role"
|
||||||
|
value: ProtocolEnum.Vpn
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
FlickableType {
|
||||||
|
id: fl
|
||||||
|
anchors.top: root.top
|
||||||
|
anchors.bottom: root.bottom
|
||||||
|
contentHeight: content.height
|
||||||
|
|
||||||
|
Column {
|
||||||
|
id: content
|
||||||
|
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 16
|
||||||
|
anchors.leftMargin: 16
|
||||||
|
anchors.topMargin: 20
|
||||||
|
|
||||||
|
spacing: 16
|
||||||
|
|
||||||
|
HeaderTextType {
|
||||||
|
width: parent.width
|
||||||
|
buttonImage: "qrc:/images/controls/arrow-left.svg"
|
||||||
|
|
||||||
|
headerText: "Протокол подключения"
|
||||||
|
descriptionText: "Выберите более приоритетный для вас. Позже можно будет установить остальные протоколы и доп сервисы, вроде DNS-прокси и SFTP."
|
||||||
|
}
|
||||||
|
|
||||||
|
ListView {
|
||||||
|
id: containers
|
||||||
|
width: parent.width
|
||||||
|
height: containers.contentItem.height
|
||||||
|
currentIndex: -1
|
||||||
|
clip: true
|
||||||
|
interactive: false
|
||||||
|
model: containersModel
|
||||||
|
|
||||||
|
delegate: Item {
|
||||||
|
implicitWidth: containers.width
|
||||||
|
implicitHeight: delegateContent.implicitHeight
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: delegateContent
|
||||||
|
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
|
LabelWithButtonType {
|
||||||
|
id: container
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.topMargin: 16
|
||||||
|
Layout.bottomMargin: 16
|
||||||
|
|
||||||
|
text: name_role
|
||||||
|
descriptionText: desc_role
|
||||||
|
buttonImage: "qrc:/images/controls/chevron-right.svg"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
height: 1
|
||||||
|
color: "#2C2D30"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -31,7 +31,7 @@ PageBase {
|
||||||
source: "qrc:/images/amneziaBigLogo.png"
|
source: "qrc:/images/amneziaBigLogo.png"
|
||||||
|
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
Layout.topMargin: 80
|
Layout.topMargin: 32
|
||||||
Layout.leftMargin: 8
|
Layout.leftMargin: 8
|
||||||
Layout.rightMargin: 8
|
Layout.rightMargin: 8
|
||||||
Layout.preferredWidth: 344
|
Layout.preferredWidth: 344
|
||||||
|
|
@ -67,8 +67,8 @@ PageBase {
|
||||||
Layout.rightMargin: 16
|
Layout.rightMargin: 16
|
||||||
|
|
||||||
defaultColor: "transparent"
|
defaultColor: "transparent"
|
||||||
hoveredColor: Qt.rgba(255, 255, 255, 0.08)
|
hoveredColor: Qt.rgba(1, 1, 1, 0.08)
|
||||||
pressedColor: Qt.rgba(255, 255, 255, 0.12)
|
pressedColor: Qt.rgba(1, 1, 1, 0.12)
|
||||||
disabledColor: "#878B91"
|
disabledColor: "#878B91"
|
||||||
textColor: "#D7D8DB"
|
textColor: "#D7D8DB"
|
||||||
borderWidth: 1
|
borderWidth: 1
|
||||||
|
|
@ -123,6 +123,7 @@ PageBase {
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
||||||
text: "Данные для подключения"
|
text: "Данные для подключения"
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
|
|
||||||
LabelWithButtonType {
|
LabelWithButtonType {
|
||||||
|
|
@ -134,7 +135,8 @@ PageBase {
|
||||||
buttonImage: "qrc:/images/controls/chevron-right.svg"
|
buttonImage: "qrc:/images/controls/chevron-right.svg"
|
||||||
|
|
||||||
onClickedFunc: function() {
|
onClickedFunc: function() {
|
||||||
UiLogic.goToPage(PageEnum.Credentials)
|
UiLogic.goToPage(PageEnum.WizardCredentials)
|
||||||
|
drawer.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue