hide chat mode switch for now and make compact mode the default

This commit is contained in:
Iuri Matias 2021-03-15 17:11:07 -04:00
parent e725e7982d
commit 93668ff75a
1 changed files with 46 additions and 45 deletions

View File

@ -179,59 +179,60 @@ ScrollView {
} }
} }
StatusSectionHeadline { // StatusSectionHeadline {
id: sectionHeadlineChatMode // id: sectionHeadlineChatMode
//% "Chat mode" // //% "Chat mode"
text: qsTrId("chat-mode") // text: qsTrId("chat-mode")
anchors.top: fontSizeSliderLegend.bottom // anchors.top: fontSizeSliderLegend.bottom
anchors.topMargin: Style.current.padding*2 // anchors.topMargin: Style.current.padding*2
anchors.left: parent.left // anchors.left: parent.left
anchors.right: parent.right // anchors.right: parent.right
} // }
RowLayout { // RowLayout {
id: chatModeSection // id: chatModeSection
anchors.top: sectionHeadlineChatMode.bottom // anchors.top: sectionHeadlineChatMode.bottom
anchors.topMargin: Style.current.padding // anchors.topMargin: Style.current.padding
anchors.left: parent.left // anchors.left: parent.left
anchors.leftMargin: -Style.current.padding // anchors.leftMargin: -Style.current.padding
anchors.right: parent.right // anchors.right: parent.right
anchors.rightMargin: -Style.current.padding // anchors.rightMargin: -Style.current.padding
StatusImageRadioButton { // StatusImageRadioButton {
padding: Style.current.padding // padding: Style.current.padding
image.source: "../../../img/appearance-normal-light.svg" // image.source: "../../../img/appearance-normal-light.svg"
image.height: 186 // image.height: 186
//% "Normal" // //% "Normal"
control.text: qsTrId("normal") // control.text: qsTrId("normal")
control.checked: !appSettings.useCompactMode // control.checked: !appSettings.useCompactMode
onRadioCheckedChanged: { // onRadioCheckedChanged: {
if (checked) { // if (checked) {
appSettings.useCompactMode = false // appSettings.useCompactMode = false
} // }
} // }
} // }
StatusImageRadioButton { // StatusImageRadioButton {
padding: Style.current.padding // padding: Style.current.padding
image.source: "../../../img/appearance-compact-light.svg" // image.source: "../../../img/appearance-compact-light.svg"
image.height: 186 // image.height: 186
//% "Compact" // //% "Compact"
control.text: qsTrId("compact") // control.text: qsTrId("compact")
control.checked: appSettings.useCompactMode // control.checked: appSettings.useCompactMode
onRadioCheckedChanged: { // onRadioCheckedChanged: {
if (checked) { // if (checked) {
appSettings.useCompactMode = true // appSettings.useCompactMode = true
} // }
} // }
} // }
} // }
StatusSectionHeadline { StatusSectionHeadline {
id: sectionHeadlineAppearance id: sectionHeadlineAppearance
//% "Appearance" //% "Appearance"
text: qsTrId("appearance") text: qsTrId("appearance")
anchors.top: chatModeSection.bottom // anchors.top: chatModeSection.bottom
anchors.top: fontSizeSliderLegend.bottom
anchors.topMargin: Style.current.padding*3 anchors.topMargin: Style.current.padding*3
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right