This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.qml
119 lines (111 loc) · 4.34 KB
/
main.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/***************************************************************************
* Copyright (C) 2017 - 2023 Anke Boersma <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
import QtQuick 2.7
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.3
import QtQuick.Window 2.0
import QtQuick.Dialogs
ApplicationWindow {
visible: true
minimumWidth: 700
maximumWidth: 700
minimumHeight: 420
maximumHeight: 420
font.capitalization: Font.MixedCase
x: Screen.width / 2 - width / 2
y: Screen.height / 2 - height / 2
title: qsTr("Welcome")
SwipeView {
id: swipeView
anchors.fill: parent
currentIndex: tabBar.currentIndex
Page1 {
Label {
text: qsTr("<div>Thanks for trying KaOS. In need of the password file or package list?<br>
Want to learn more about the project? Please find the links below.<br><br>
Don't hesitate to give your opinion about KaOS in the Forum.</div>")
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
width: 690
wrapMode: Text.WordWrap
}
}
Page {
Label {
textFormat: Text.RichText
//: Do not translate root/root and live/live
text: qsTr("<p>Correct passwords for use in the live session:</p>
<p></p>
<table width=100% align=center bgcolor=#eaeaea>
<tr>
<th>Username:</th>
<th>Password:</th>
</tr>
<tr>
<td align=center>root</td>
<td align=center>root</td>
</tr>
<tr>
<td align=center>live</td>
<td align=center>live</td>
</tr>
</table>
<p>Hope you enjoy</p>")
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
Image {
id: image
anchors.centerIn: parent
anchors.verticalCenterOffset : 100
width: 22
height: 22
source: "images/face-smile-grin.svg"
}
}
}
Page {
Loader {
id: about
source: "about.qml"
}
}
Page {
Loader {
id: packages
source: "packages.qml"
}
}
}
footer: TabBar {
id: tabBar
currentIndex: swipeView.currentIndex
TabButton {
text: qsTr("Main")
}
TabButton {
text: qsTr("Passwords")
}
TabButton {
text: qsTr("About")
}
TabButton {
text: qsTr("Package List")
}
}
}