2023-05-06 06:52:23 +03:00
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
|
|
import PageEnum 1.0
|
2024-07-07 13:42:38 +03:00
|
|
|
import Style 1.0
|
2023-05-06 06:52:23 +03:00
|
|
|
|
|
|
|
|
import "./"
|
|
|
|
|
import "../Controls2"
|
|
|
|
|
import "../Config"
|
|
|
|
|
import "../Controls2/TextTypes"
|
2023-05-22 00:10:51 +08:00
|
|
|
import "../Components"
|
2023-05-06 06:52:23 +03:00
|
|
|
|
2023-05-25 15:40:17 +08:00
|
|
|
PageType {
|
2023-05-06 06:52:23 +03:00
|
|
|
id: root
|
2026-03-10 17:19:55 +03:00
|
|
|
enableTimer: (SettingsController.isOnTv()) ? false : true
|
2023-05-06 06:52:23 +03:00
|
|
|
|
2024-08-20 16:54:05 +07:00
|
|
|
ColumnLayout {
|
|
|
|
|
id: content
|
2023-05-25 15:40:17 +08:00
|
|
|
|
2024-08-20 16:54:05 +07:00
|
|
|
anchors.fill: parent
|
|
|
|
|
spacing: 0
|
2023-09-01 00:48:58 +05:00
|
|
|
|
2024-08-20 16:54:05 +07:00
|
|
|
Image {
|
|
|
|
|
id: image
|
|
|
|
|
source: "qrc:/images/amneziaBigLogo.png"
|
2023-09-08 18:05:08 +05:00
|
|
|
|
2024-08-20 16:54:05 +07:00
|
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
2026-04-30 14:53:03 +08:00
|
|
|
Layout.topMargin: 32 + PageController.safeAreaTopMargin
|
2024-08-20 16:54:05 +07:00
|
|
|
Layout.preferredWidth: 360
|
|
|
|
|
Layout.preferredHeight: 287
|
2023-09-08 18:05:08 +05:00
|
|
|
}
|
|
|
|
|
|
2024-08-20 16:54:05 +07:00
|
|
|
BasicButtonType {
|
|
|
|
|
id: startButton
|
|
|
|
|
Layout.fillWidth: true
|
2026-04-30 14:53:03 +08:00
|
|
|
Layout.bottomMargin: 48 + PageController.safeAreaBottomMargin
|
2024-08-20 16:54:05 +07:00
|
|
|
Layout.leftMargin: 16
|
|
|
|
|
Layout.rightMargin: 16
|
|
|
|
|
Layout.alignment: Qt.AlignBottom
|
2024-02-28 19:39:28 +07:00
|
|
|
|
2024-08-20 16:54:05 +07:00
|
|
|
text: qsTr("Let's get started")
|
2024-03-31 12:40:42 +05:00
|
|
|
|
2024-08-20 16:54:05 +07:00
|
|
|
clickedFunc: function() {
|
|
|
|
|
PageController.goToPage(PageEnum.PageSetupWizardConfigSource)
|
2024-02-28 19:39:28 +07:00
|
|
|
}
|
2024-04-18 17:54:55 +04:00
|
|
|
}
|
2023-05-06 06:52:23 +03:00
|
|
|
}
|
2026-03-10 17:19:55 +03:00
|
|
|
|
|
|
|
|
Timer {
|
|
|
|
|
interval: 250
|
|
|
|
|
running: SettingsController.isOnTv()
|
|
|
|
|
repeat: true
|
|
|
|
|
onTriggered: {
|
|
|
|
|
startButton.forceActiveFocus()
|
|
|
|
|
if (startButton.activeFocus) {
|
|
|
|
|
running = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onVisibleChanged: {
|
|
|
|
|
if (visible && SettingsController.isOnTv()) {
|
|
|
|
|
startButton.forceActiveFocus()
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-05-06 06:52:23 +03:00
|
|
|
}
|