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

i18n: more RTL repairs

This commit is contained in:
bbedward
2026-01-08 18:45:38 -05:00
parent 1ff1f3a7f2
commit eece811fb0
9 changed files with 51 additions and 5 deletions

View File

@@ -199,6 +199,7 @@ SettingsCard {
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
width: 80
horizontalAlignment: Text.AlignLeft
}
DankTextField {
@@ -280,6 +281,8 @@ SettingsCard {
text: I18n.tr("Command")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
Rectangle {

View File

@@ -10,6 +10,9 @@ import qs.Modules.Settings.Widgets
Item {
id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property var expandedStates: ({})
property var parentModal: null
@@ -56,6 +59,7 @@ Item {
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignLeft
}
Row {
@@ -129,7 +133,7 @@ Item {
color: Theme.surfaceVariantText
width: parent.width
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
horizontalAlignment: Text.AlignLeft
}
SettingsCard {
@@ -162,18 +166,23 @@ Item {
Column {
spacing: 2
anchors.verticalCenter: parent.verticalCenter
width: parent.width - 40 - Theme.spacingM
StyledText {
text: I18n.tr("Move Widget")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
StyledText {
text: I18n.tr("Right-click and drag anywhere on the widget")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
}
}
@@ -198,18 +207,23 @@ Item {
Column {
spacing: 2
anchors.verticalCenter: parent.verticalCenter
width: parent.width - 40 - Theme.spacingM
StyledText {
text: I18n.tr("Resize Widget")
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
StyledText {
text: I18n.tr("Right-click and drag the bottom-right corner")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
}
}

View File

@@ -8,6 +8,9 @@ import qs.Widgets
Item {
id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
function getBarComponentsFromSettings() {
const bars = SettingsData.barConfigs || [];
return bars.map(bar => ({
@@ -165,6 +168,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
StyledText {
@@ -173,6 +178,7 @@ Item {
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
width: parent.width
horizontalAlignment: Text.AlignLeft
}
}
}
@@ -194,6 +200,7 @@ Item {
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
horizontalAlignment: Text.AlignLeft
}
Item {
@@ -270,6 +277,8 @@ Item {
font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium
color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
Row {
@@ -352,6 +361,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
StyledText {
@@ -360,6 +371,7 @@ Item {
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
width: parent.width
horizontalAlignment: Text.AlignLeft
}
}
}
@@ -373,6 +385,8 @@ Item {
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium
width: parent.width
horizontalAlignment: Text.AlignLeft
}
Column {

View File

@@ -9,6 +9,9 @@ import qs.Widgets
Item {
id: keybindsTab
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property var parentModal: null
property string selectedCategory: ""
property string searchQuery: ""
@@ -210,6 +213,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium
color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
}
StyledText {
@@ -219,6 +224,7 @@ Item {
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
width: parent.width
horizontalAlignment: Text.AlignLeft
}
}
}
@@ -327,6 +333,7 @@ Item {
color: Theme.surfaceVariantText
wrapMode: Text.WordWrap
width: parent.width
horizontalAlignment: Text.AlignLeft
}
}

View File

@@ -356,7 +356,7 @@ Item {
SettingsCard {
width: parent.width
iconName: "open_in_new"
title: I18n.tr("Niri Integration")
title: I18n.tr("Niri Integration").replace("Niri", "niri")
visible: CompositorService.isNiri
SettingsToggleRow {

View File

@@ -1055,7 +1055,7 @@ Item {
SettingsCard {
tab: "theme"
tags: ["niri", "layout", "gaps", "radius", "window", "border"]
title: I18n.tr("Niri Layout Overrides")
title: I18n.tr("Niri Layout Overrides").replace("Niri", "niri")
settingKey: "niriLayout"
iconName: "crop_square"
visible: CompositorService.isNiri

View File

@@ -135,6 +135,8 @@ StyledRect {
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter
visible: root.title !== ""
width: implicitWidth
horizontalAlignment: Text.AlignLeft
}
}

View File

@@ -105,7 +105,7 @@ StyledRect {
anchors.bottomMargin: root.bottomPadding
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
horizontalAlignment: I18n.isRtl ? TextInput.AlignRight : TextInput.AlignLeft
horizontalAlignment: TextInput.AlignLeft
verticalAlignment: TextInput.AlignVCenter
selectByMouse: !root.ignoreLeftRightKeys
clip: true
@@ -189,7 +189,7 @@ StyledRect {
text: root.placeholderText
font: textInput.font
color: placeholderColor
horizontalAlignment: textInput.horizontalAlignment
horizontalAlignment: Text.AlignLeft
verticalAlignment: textInput.verticalAlignment
visible: textInput.text.length === 0 && !textInput.activeFocus
elide: I18n.isRtl ? Text.ElideLeft : Text.ElideRight

View File

@@ -12,6 +12,9 @@ import "../Common/KeybindActions.js" as Actions
Item {
id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property var bindData: ({})
property bool isExpanded: false
property var panelWindow: null
@@ -325,6 +328,7 @@ Item {
color: Theme.surfaceText
elide: Text.ElideRight
Layout.fillWidth: true
horizontalAlignment: Text.AlignLeft
}
RowLayout {
@@ -453,6 +457,7 @@ Item {
font.weight: Font.Medium
color: Theme.primary
Layout.fillWidth: true
horizontalAlignment: Text.AlignLeft
}
}
@@ -771,6 +776,7 @@ Item {
color: Theme.primary
Layout.fillWidth: true
elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
}
}