mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-15 09:04:45 +00:00
fix language modal
This commit is contained in:
parent
5e0da7c1ec
commit
3813a1a330
@ -15,26 +15,37 @@ ModalPopup {
|
|||||||
destroy()
|
destroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Item {
|
||||||
anchors.top: parent.top
|
anchors.fill: parent
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.rightMargin: Style.current.padding
|
|
||||||
anchors.leftMargin: Style.current.padding
|
|
||||||
height: 50
|
|
||||||
|
|
||||||
spacing: Style.current.padding
|
ScrollView {
|
||||||
|
width: parent.width
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: Style.current.padding
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.bottomMargin: Style.current.bigPadding
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: 16
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 16
|
||||||
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
|
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
|
||||||
|
clip: true
|
||||||
|
|
||||||
ButtonGroup {
|
ButtonGroup {
|
||||||
id: languageGroup
|
id: languageGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
Repeater {
|
ListView {
|
||||||
|
id: languagesListView
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.rightMargin: Style.current.padding
|
||||||
model: Locales_JSON.locales
|
model: Locales_JSON.locales
|
||||||
height: 50
|
spacing: 0
|
||||||
|
|
||||||
|
delegate: Component {
|
||||||
StatusRadioButtonRow {
|
StatusRadioButtonRow {
|
||||||
|
height: 64
|
||||||
text: modelData.name
|
text: modelData.name
|
||||||
buttonGroup: languageGroup
|
buttonGroup: languageGroup
|
||||||
checked: appSettings.locale === modelData.locale
|
checked: appSettings.locale === modelData.locale
|
||||||
@ -47,5 +58,6 @@ ModalPopup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user