implement qml UI
This commit is contained in:
parent
1baf36282e
commit
8d36c31cb4
41 changed files with 7963 additions and 16 deletions
140
client/ui/qml/PageGeneralSettings.qml
Normal file
140
client/ui/qml/PageGeneralSettings.qml
Normal file
|
@ -0,0 +1,140 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
import "./"
|
||||
|
||||
Item {
|
||||
id: root
|
||||
width: GC.screenWidth
|
||||
height: GC.screenHeight
|
||||
ImageButtonType {
|
||||
id: back
|
||||
x: 10
|
||||
y: 10
|
||||
width: 26
|
||||
height: 20
|
||||
icon.source: "qrc:/images/arrow_left.png"
|
||||
onClicked: {
|
||||
UiLogic.closePage()
|
||||
}
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 160
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 220
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 620
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 560
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 280
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 100
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 340
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 400
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
Image {
|
||||
x: 10
|
||||
y: 40
|
||||
width: 360
|
||||
height: 1
|
||||
source: "qrc:/images/line.png"
|
||||
}
|
||||
SettingButtonType {
|
||||
x: 30
|
||||
y: 355
|
||||
width: 330
|
||||
height: 30
|
||||
icon.source: "qrc:/images/plus.png"
|
||||
text: qsTr("Add server")
|
||||
}
|
||||
SettingButtonType {
|
||||
x: 30
|
||||
y: 55
|
||||
width: 330
|
||||
height: 30
|
||||
icon.source: "qrc:/images/settings.png"
|
||||
text: qsTr("App settings")
|
||||
}
|
||||
SettingButtonType {
|
||||
x: 30
|
||||
y: 575
|
||||
width: 330
|
||||
height: 30
|
||||
icon.source: "qrc:/images/settings.png"
|
||||
text: qsTr("Exit")
|
||||
}
|
||||
SettingButtonType {
|
||||
x: 30
|
||||
y: 115
|
||||
width: 330
|
||||
height: 30
|
||||
icon.source: "qrc:/images/settings.png"
|
||||
text: qsTr("Network settings")
|
||||
}
|
||||
SettingButtonType {
|
||||
x: 30
|
||||
y: 175
|
||||
width: 330
|
||||
height: 30
|
||||
icon.source: "qrc:/images/server_settings.png"
|
||||
text: qsTr("Server management")
|
||||
}
|
||||
SettingButtonType {
|
||||
x: 30
|
||||
y: 295
|
||||
width: 330
|
||||
height: 30
|
||||
icon.source: "qrc:/images/server_settings.png"
|
||||
text: qsTr("Servers")
|
||||
}
|
||||
SettingButtonType {
|
||||
x: 30
|
||||
y: 235
|
||||
width: 330
|
||||
height: 30
|
||||
icon.source: "qrc:/images/share.png"
|
||||
text: qsTr("Share connection")
|
||||
enabled: UiLogic.pushButtonGeneralSettingsShareConnectionEnable
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue