Commit 77c61f5c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Window Switcher] Place on the right side for right-to-left languages

This makes it consistent with what we do with the Plasma sidebars (Widget Explorer, Activity Manager).
Also enables LayoutMirroring.

Differential Revision: https://phabricator.kde.org/D2761
parent f010b18a
...@@ -35,10 +35,10 @@ KWin.Switcher { ...@@ -35,10 +35,10 @@ KWin.Switcher {
PlasmaCore.Dialog { PlasmaCore.Dialog {
id: dialog id: dialog
location: PlasmaCore.Types.LeftEdge location: Qt.application.layoutDirection === Qt.RightToLeft ? PlasmaCore.Types.RightEdge : PlasmaCore.Types.LeftEdge
visible: tabBox.visible visible: tabBox.visible
flags: Qt.X11BypassWindowManagerHint flags: Qt.X11BypassWindowManagerHint
x: screenGeometry.x x: screenGeometry.x + (Qt.application.layoutDirection === Qt.RightToLeft ? screenGeometry.width - width : 0)
y: screenGeometry.y y: screenGeometry.y
mainItem: PlasmaExtras.ScrollArea { mainItem: PlasmaExtras.ScrollArea {
...@@ -49,6 +49,9 @@ KWin.Switcher { ...@@ -49,6 +49,9 @@ KWin.Switcher {
width: tabBox.screenGeometry.width * 0.15 + (__verticalScrollBar.visible ? __verticalScrollBar.width : 0) width: tabBox.screenGeometry.width * 0.15 + (__verticalScrollBar.visible ? __verticalScrollBar.width : 0)
height: tabBox.screenGeometry.height - dialog.margins.top - dialog.margins.bottom height: tabBox.screenGeometry.height - dialog.margins.top - dialog.margins.bottom
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true
ListView { ListView {
id: thumbnailListView id: thumbnailListView
model: tabBox.model model: tabBox.model
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment