mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 06:52:50 -05:00
i18n: WIP initial RTL support
- notifications - color picker - process list - settings - control center, dash - launcher part of #1059
This commit is contained in:
@@ -5,6 +5,9 @@ import qs.Modules.Settings
|
||||
FocusScope {
|
||||
id: root
|
||||
|
||||
LayoutMirroring.enabled: I18n.isRtl
|
||||
LayoutMirroring.childrenInherit: true
|
||||
|
||||
property int currentIndex: 0
|
||||
property var parentModal: null
|
||||
|
||||
|
||||
@@ -135,6 +135,9 @@ FloatingWindow {
|
||||
FocusScope {
|
||||
id: contentFocusScope
|
||||
|
||||
LayoutMirroring.enabled: I18n.isRtl
|
||||
LayoutMirroring.childrenInherit: true
|
||||
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
|
||||
@@ -223,7 +226,7 @@ FloatingWindow {
|
||||
SettingsSidebar {
|
||||
id: sidebar
|
||||
|
||||
x: 0
|
||||
anchors.left: parent.left
|
||||
width: settingsModal.isCompactMode ? parent.width : 270
|
||||
visible: settingsModal.isCompactMode ? settingsModal.menuVisible : true
|
||||
parentModal: settingsModal
|
||||
@@ -238,8 +241,8 @@ FloatingWindow {
|
||||
}
|
||||
|
||||
Item {
|
||||
x: settingsModal.isCompactMode ? (settingsModal.menuVisible ? parent.width : 0) : sidebar.width
|
||||
width: settingsModal.isCompactMode ? parent.width : parent.width - sidebar.width
|
||||
anchors.left: settingsModal.isCompactMode ? (settingsModal.menuVisible ? sidebar.right : parent.left) : sidebar.right
|
||||
anchors.right: parent.right
|
||||
height: parent.height
|
||||
clip: true
|
||||
|
||||
@@ -250,14 +253,6 @@ FloatingWindow {
|
||||
parentModal: settingsModal
|
||||
currentIndex: settingsModal.currentTabIndex
|
||||
}
|
||||
|
||||
Behavior on x {
|
||||
enabled: settingsModal.enableAnimations
|
||||
NumberAnimation {
|
||||
duration: Theme.mediumDuration
|
||||
easing.bezierCurve: Theme.expressiveCurves.emphasizedDecel
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,9 @@ import qs.Widgets
|
||||
Rectangle {
|
||||
id: root
|
||||
|
||||
LayoutMirroring.enabled: I18n.isRtl
|
||||
LayoutMirroring.childrenInherit: true
|
||||
|
||||
property int currentIndex: 0
|
||||
property var parentModal: null
|
||||
property var expandedCategories: ({})
|
||||
|
||||
Reference in New Issue
Block a user