This repository has been archived on 2021-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
ui/qml/panes/AddGroupPane.qml

60 lines
1.1 KiB
QML
Raw Normal View History

2018-11-22 00:01:17 +00:00
import QtGraphicalEffects 1.0
import QtQuick 2.7
import QtQuick.Controls 2.4
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.3
import QtQuick.Window 2.11
2019-02-12 22:47:23 +00:00
import QtQuick.Controls 1.4
2018-11-22 00:01:17 +00:00
import "../widgets"
2019-02-12 22:47:23 +00:00
import "../styles"
2018-11-22 00:01:17 +00:00
ColumnLayout { // settingsPane
anchors.fill: parent
StackToolbar {
text: "Create a new group"
aux.visible: false
}
2019-02-12 22:47:23 +00:00
Column {
leftPadding: 10
spacing: 5
2018-11-22 00:01:17 +00:00
ScalingLabel {
text: "Server:"
}
2019-02-12 22:47:23 +00:00
TextField {
2018-11-22 00:01:17 +00:00
id: txtServer
2019-02-12 22:47:23 +00:00
style: CwtchTextFieldStyle{ width: 400 }
2018-11-22 00:01:17 +00:00
text: "6xnl4rlc5gq5crnyki6wp6qy2dy2brsjtfixwhgujfycsu7jly7pmxad"
}
ScalingLabel{
text: "Group name:"
}
2019-02-12 22:47:23 +00:00
TextField {
2018-11-22 00:01:17 +00:00
id: txtGroupName
2019-02-12 22:47:23 +00:00
style: CwtchTextFieldStyle{ width: 400 }
2018-11-22 00:01:17 +00:00
text: "my awesome group"
}
SimpleButton {
text: "create"
onClicked: {
gcd.createGroup(txtServer.text, txtGroupName.text)
}
}
2019-02-12 22:47:23 +00:00
}//end of column with padding
2018-11-22 00:01:17 +00:00
Component.onCompleted: {
zoomSlider.value = Screen.pixelDensity / 3.2 // artistic license. set by erinn. fight me before changing
if (zoomSlider.value < zoomSlider.from) zoomSlider.value = zoomSlider.from
if (zoomSlider.value > zoomSlider.to) zoomSlider.value = zoomSlider.to
}
}