mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
0ab8a62896
- Renamed main `CommunitiesPortal` folder to `Communities`. - Created new `layouts` folder. - Moved layout files from chat to communities. - Created new `helpers` folder. - Moved helpers files from chat to communities. - Moved `controls/community` files from chat to communities `controls`. - Moved `panels/communities` files from chat to communities `panels`. - Moved `popups/community` files from chat to communities `popups`. - Moved `views/community` files from chat to communities `views`. - Moved `CommunityBanner` file from shared to `Communities/controls`. Only used in communities context. - Moved `CommunitySettingsView` and `CommunityColumnView` files from chat to communities `views`. - Moved `PermissionsStore.qml` file to `shared/stores`. - Updated imports. - Updated storybook. Part of #6204
91 lines
2.1 KiB
QML
91 lines
2.1 KiB
QML
import QtQuick 2.14
|
|
import QtQuick.Controls 2.14
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import Storybook 1.0
|
|
|
|
import AppLayouts.Communities.panels 1.0
|
|
|
|
SplitView {
|
|
orientation: Qt.Vertical
|
|
|
|
Item {
|
|
SplitView.fillWidth: true
|
|
SplitView.fillHeight: true
|
|
|
|
Item {
|
|
id: container
|
|
width: widthSlider.value
|
|
height: conflictPanel.implicitHeight
|
|
anchors.centerIn: parent
|
|
|
|
PermissionConflictWarningPanel {
|
|
id: conflictPanel
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
holdings: holdingsField.text
|
|
permissions: permissionsField.text
|
|
channels: channelsField.text
|
|
}
|
|
}
|
|
}
|
|
|
|
LogsAndControlsPanel {
|
|
SplitView.minimumHeight: 100
|
|
SplitView.preferredHeight: 250
|
|
|
|
ColumnLayout {
|
|
spacing: 10
|
|
Row {
|
|
Label {
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
text: "Width:"
|
|
}
|
|
|
|
Slider {
|
|
id: widthSlider
|
|
value: 400
|
|
from: 200
|
|
to: 600
|
|
}
|
|
}
|
|
Row {
|
|
Label {
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
text: "Holdings:"
|
|
}
|
|
|
|
TextField {
|
|
id: holdingsField
|
|
text: "1 ETH"
|
|
}
|
|
}
|
|
|
|
Row {
|
|
Label {
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
text: "Permissions:"
|
|
}
|
|
|
|
TextField {
|
|
id: permissionsField
|
|
text: "View and Post"
|
|
}
|
|
}
|
|
|
|
Row {
|
|
Label {
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
text: "Channels:"
|
|
}
|
|
|
|
TextField {
|
|
id: channelsField
|
|
text: "#general"
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|