Skip to content
Snippets Groups Projects
Commit c8ec980a authored by Sébastien Blin's avatar Sébastien Blin
Browse files

misc: invert horizontal and vertical view labels

Change-Id: Ic00b2f5073ee3c3b866c8042be3c19993d446699
GitLab: #1142
parent cb0e45c3
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ RadioButton {
spacing: 10
anchors.left: root.indicator.right
anchors.leftMargin: root.spacing
anchors.leftMargin: 10
ResponsiveImage {
color: borderColor
......@@ -89,6 +89,8 @@ RadioButton {
font.pixelSize: JamiTheme.settingsDescriptionPixelSize
text: root.text
wrapMode: Text.WordWrap
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
}
}
......
......@@ -125,18 +125,18 @@ Rectangle {
anchors.fill: parent
property bool isHorizontal: false // Calculated when showing the stack view
orientation: isHorizontal ? Qt.Horizontal : Qt.Vertical
orientation: isHorizontal ? Qt.Vertical : Qt.Horizontal // Chatview is horizontal if split is vertical (so chatview takes full width)
handle: Rectangle {
implicitWidth: mainColumnLayout.isHorizontal ? JamiTheme.splitViewHandlePreferredWidth : root.width
implicitHeight: mainColumnLayout.isHorizontal ? root.height : JamiTheme.splitViewHandlePreferredWidth
implicitWidth: mainColumnLayout.isHorizontal ? root.width : JamiTheme.splitViewHandlePreferredWidth
implicitHeight: mainColumnLayout.isHorizontal ? JamiTheme.splitViewHandlePreferredWidth : root.height
color: SplitHandle.pressed ? JamiTheme.pressColor : (SplitHandle.hovered ? JamiTheme.hoverColor : JamiTheme.tabbarBorderColor)
}
Rectangle {
id: callPageMainRect
SplitView.preferredHeight: mainColumnLayout.isHorizontal ? root.height : (root.height / 3) * 2
SplitView.preferredHeight: mainColumnLayout.isHorizontal ? (root.height / 3) * 2 : root.height
SplitView.minimumWidth: JamiTheme.mainViewPaneMinWidth
SplitView.fillWidth: true
......
......@@ -343,35 +343,35 @@ SettingsPageBase {
}
MaterialRadioButton {
id: verticalRadio
id: horizontalRadio
width: 255
height: 60
text: JamiStrings.verticalViewOpt
text: JamiStrings.horizontalViewOpt
ButtonGroup.group: optionsB
iconSource: JamiResources.horizontal_view_svg
onCheckedChanged: {
if (checked) {
UtilsAdapter.setAppValue(Settings.Key.ShowChatviewHorizontally, false);
UtilsAdapter.setAppValue(Settings.Key.ShowChatviewHorizontally, true);
}
}
}
MaterialRadioButton {
id: horizontalRadio
id: verticalRadio
width: 255
height: 60
text: JamiStrings.horizontalViewOpt
text: JamiStrings.verticalViewOpt
ButtonGroup.group: optionsB
//color: JamiTheme.blackColor
iconSource: JamiResources.vertical_view_svg
onCheckedChanged: {
if (checked) {
UtilsAdapter.setAppValue(Settings.Key.ShowChatviewHorizontally, true);
UtilsAdapter.setAppValue(Settings.Key.ShowChatviewHorizontally, false);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment