1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

i18n: more RTL layout enhancements

This commit is contained in:
bbedward
2026-01-08 16:11:30 -05:00
parent a21a846bf5
commit 1ff1f3a7f2
53 changed files with 1605 additions and 774 deletions

View File

@@ -10,6 +10,9 @@ import qs.Modules.Settings.Widgets
Item {
id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property var parentModal: null
property string selectedMonitorName: {
var screens = Quickshell.screens;
@@ -233,6 +236,7 @@ Item {
elide: Text.ElideMiddle
maximumLineCount: 1
width: parent.width
horizontalAlignment: Text.AlignLeft
}
StyledText {
@@ -245,6 +249,7 @@ Item {
elide: Text.ElideMiddle
maximumLineCount: 1
width: parent.width
horizontalAlignment: Text.AlignLeft
visible: {
var currentWallpaper = SessionData.perMonitorWallpaper ? SessionData.getMonitorWallpaper(selectedMonitorName) : SessionData.wallpaperPath;
return currentWallpaper !== "";
@@ -252,7 +257,9 @@ Item {
}
Row {
anchors.left: parent.left
spacing: Theme.spacingS
layoutDirection: I18n.isRtl ? Qt.RightToLeft : Qt.LeftToRight
visible: {
var currentWallpaper = SessionData.perMonitorWallpaper ? SessionData.getMonitorWallpaper(selectedMonitorName) : SessionData.wallpaperPath;
return currentWallpaper !== "";

View File

@@ -93,7 +93,7 @@ Item {
elide: Text.ElideRight
width: parent.width
visible: root.text !== ""
anchors.left: parent.left
horizontalAlignment: Text.AlignLeft
}
StyledText {
@@ -103,7 +103,7 @@ Item {
wrapMode: Text.WordWrap
width: parent.width
visible: root.description !== ""
anchors.left: parent.left
horizontalAlignment: Text.AlignLeft
}
}

View File

@@ -8,6 +8,9 @@ import qs.Widgets
DankDropdown {
id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property string tab: ""
property var tags: []
property string settingKey: ""

View File

@@ -7,6 +7,9 @@ import qs.Widgets
StyledRect {
id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property string tab: ""
property var tags: []
@@ -67,6 +70,7 @@ StyledRect {
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
width: parent.width
horizontalAlignment: Text.AlignLeft
visible: root.description !== ""
}
}

View File

@@ -96,7 +96,7 @@ Item {
color: Theme.surfaceText
visible: root.text !== ""
width: parent.width
anchors.left: parent.left
horizontalAlignment: Text.AlignLeft
}
StyledText {
@@ -106,7 +106,7 @@ Item {
wrapMode: Text.WordWrap
width: parent.width
visible: root.description !== ""
anchors.left: parent.left
horizontalAlignment: Text.AlignLeft
}
}

View File

@@ -7,6 +7,9 @@ import qs.Widgets
StyledRect {
id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property string tab: ""
property var tags: []
@@ -76,6 +79,7 @@ StyledRect {
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
width: parent.width
horizontalAlignment: Text.AlignLeft
visible: root.description !== ""
}
}

View File

@@ -8,6 +8,9 @@ import qs.Widgets
DankToggle {
id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property string tab: ""
property var tags: []
property string settingKey: ""