Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
trinity/qml/RoomSettings.qml

99 lines
1.8 KiB
QML
Raw Normal View History

2021-07-21 16:08:15 -04:00
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtGraphicalEffects 1.0
import QtQuick.Shapes 1.0
Popup {
2021-07-21 16:08:15 -04:00
id: roomSettings
width: 500
height: 256
x: parent.width / 2 - width / 2
y: parent.height / 2 - height / 2
modal: true
2021-07-21 16:08:15 -04:00
property var room
Rectangle {
width: parent.width
2021-07-21 16:08:15 -04:00
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
color: "transparent"
TabBar {
id: bar
TabButton {
text: "General"
}
TabButton {
text: "Security & Privacy"
}
TabButton {
text: "Roles & Permissions"
}
TabButton {
text: "Notifications"
}
2021-07-21 16:08:15 -04:00
TabButton {
text: "Advanced"
2021-07-21 16:08:15 -04:00
}
}
SwipeView {
id: settingsStack
anchors.top: bar.bottom
width: parent.width
height: parent.height
currentIndex: bar.currentIndex
clip: true
Item {
id: overviewTab
Label {
id: nameLabel
text: "Room Name"
2021-07-21 16:08:15 -04:00
}
TextField {
id: nameField
text: room.name
anchors.top: nameLabel.bottom
}
Label {
id: topicLabel
text: "Room Topic"
2021-07-21 16:08:15 -04:00
anchors.top: nameField.bottom
}
TextField {
id: topicField
text: room.topic
anchors.top: topicLabel.bottom
}
}
}
}
}