mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
68 lines
1.6 KiB
QML
68 lines
1.6 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
import PageEnum 1.0
|
|
import Style 1.0
|
|
|
|
import "./"
|
|
import "../Controls2"
|
|
import "../Config"
|
|
import "../Controls2/TextTypes"
|
|
import "../Components"
|
|
|
|
PageType {
|
|
id: root
|
|
enableTimer: (SettingsController.isOnTv()) ? false : true
|
|
|
|
ColumnLayout {
|
|
id: content
|
|
|
|
anchors.fill: parent
|
|
spacing: 0
|
|
|
|
Image {
|
|
id: image
|
|
source: "qrc:/images/amneziaBigLogo.png"
|
|
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
|
Layout.topMargin: 32 + SettingsController.safeAreaTopMargin
|
|
Layout.preferredWidth: 360
|
|
Layout.preferredHeight: 287
|
|
}
|
|
|
|
BasicButtonType {
|
|
id: startButton
|
|
Layout.fillWidth: true
|
|
Layout.bottomMargin: 48 + SettingsController.safeAreaBottomMargin
|
|
Layout.leftMargin: 16
|
|
Layout.rightMargin: 16
|
|
Layout.alignment: Qt.AlignBottom
|
|
|
|
text: qsTr("Let's get started")
|
|
|
|
clickedFunc: function() {
|
|
PageController.goToPage(PageEnum.PageSetupWizardConfigSource)
|
|
}
|
|
}
|
|
}
|
|
|
|
Timer {
|
|
interval: 250
|
|
running: SettingsController.isOnTv()
|
|
repeat: true
|
|
onTriggered: {
|
|
startButton.forceActiveFocus()
|
|
if (startButton.activeFocus) {
|
|
running = false
|
|
}
|
|
}
|
|
}
|
|
|
|
onVisibleChanged: {
|
|
if (visible && SettingsController.isOnTv()) {
|
|
startButton.forceActiveFocus()
|
|
}
|
|
}
|
|
}
|