This repository has been archived by the owner on Jul 20, 2022. It is now read-only.
/
NetworkUp.qml
99 lines (79 loc) · 2.74 KB
/
NetworkUp.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
/* Chaotic Installer Network Config Screen
I like to write this by hand, do whatever you want, but keep diff clean to read, so I
can keep writing it manually.
Also, consider this file copyright-free.
*/
import QtQuick 2.2
import QtQuick.Controls 2.12
import QtQuick.Controls.Material 2.12
Component {
Column {
Row {
anchors.top: parent.top
anchors.topMargin: 20
anchors.horizontalCenter: parent.horizontalCenter
Column {
spacing: 20
Row {
anchors.horizontalCenter: parent.horizontalCenter
Text {
text: qsTr('Set your network!')
}
}
Row {
anchors.horizontalCenter: parent.horizontalCenter
Text {
text: qsTr('You\'re currently: %1'.arg(net.available ? qsTr('ONLINE') : qsTr('OFFLINE')))
}
}
Row {
anchors.horizontalCenter: parent.horizontalCenter
visible: net.wifiCardExists
Button {
text: qsTr('Select Wireless AP')
onClicked: contentStack.push(wifiMenu)
}
}
Row {
anchors.horizontalCenter: parent.horizontalCenter
Button {
text: qsTr('Configure Ethernet')
onClicked: contentStack.push(ethMenu)
}
}
Row {
anchors.horizontalCenter: parent.horizontalCenter
Text {
text: qsTr('* In both options you\'ll find a form that will be used for generating a netctl profile,\nthis profile can be manually edited before starting it.')
}
}
}
}
Row {
anchors.bottom: parent.bottom
anchors.bottomMargin: 20
anchors.horizontalCenter: parent.horizontalCenter
spacing: 80
Column {
Button {
text: qsTr('Back')
onClicked: contentStack.pop()
}
}
Column {
visible: net.available
Button {
text: qsTr('Next')
highlighted: true
}
}
Column {
visible: !net.available
anchors.verticalCenter: parent.verticalCenter
Text {
text: qsTr('Network required')
}
}
}
}
}