mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +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
54 lines
1.2 KiB
QML
54 lines
1.2 KiB
QML
import QtQuick 2.14
|
||
import QtQuick.Controls 2.14
|
||
import QtQuick.Layouts 1.14
|
||
|
||
import StatusQ.Core 0.1
|
||
import StatusQ.Components 0.1
|
||
import StatusQ.Controls 0.1
|
||
import StatusQ.Core.Theme 0.1
|
||
|
||
import utils 1.0
|
||
|
||
Control {
|
||
id: root
|
||
|
||
property alias checked: switchItem.checked
|
||
|
||
signal toggled
|
||
|
||
contentItem: RowLayout {
|
||
spacing: Style.current.padding
|
||
|
||
StatusRoundIcon {
|
||
asset.name: "hide"
|
||
}
|
||
|
||
ColumnLayout {
|
||
Layout.fillWidth: true
|
||
|
||
StatusBaseText {
|
||
text: qsTr("Hide permission")
|
||
color: Theme.palette.directColor1
|
||
font.pixelSize: Style.current.primaryTextFontSize
|
||
}
|
||
|
||
StatusBaseText {
|
||
Layout.fillWidth: true
|
||
Layout.fillHeight: true
|
||
text: qsTr("Make this permission hidden from members who don’t meet its requirements")
|
||
color: Theme.palette.baseColor1
|
||
font.pixelSize: Style.current.primaryTextFontSize
|
||
lineHeight: 1.2
|
||
wrapMode: Text.WordWrap
|
||
elide: Text.ElideRight
|
||
}
|
||
}
|
||
|
||
StatusSwitch {
|
||
id: switchItem
|
||
|
||
onToggled: root.toggled()
|
||
}
|
||
}
|
||
}
|