diff --git a/quickshell/Modules/Settings/DesktopWidgetInstanceCard.qml b/quickshell/Modules/Settings/DesktopWidgetInstanceCard.qml index bfbe9409..ed143917 100644 --- a/quickshell/Modules/Settings/DesktopWidgetInstanceCard.qml +++ b/quickshell/Modules/Settings/DesktopWidgetInstanceCard.qml @@ -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 { diff --git a/quickshell/Modules/Settings/DesktopWidgetsTab.qml b/quickshell/Modules/Settings/DesktopWidgetsTab.qml index 843ce7de..0b44bc75 100644 --- a/quickshell/Modules/Settings/DesktopWidgetsTab.qml +++ b/quickshell/Modules/Settings/DesktopWidgetsTab.qml @@ -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 } } } diff --git a/quickshell/Modules/Settings/DisplayWidgetsTab.qml b/quickshell/Modules/Settings/DisplayWidgetsTab.qml index 4f035b18..07ca25f2 100644 --- a/quickshell/Modules/Settings/DisplayWidgetsTab.qml +++ b/quickshell/Modules/Settings/DisplayWidgetsTab.qml @@ -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 { diff --git a/quickshell/Modules/Settings/KeybindsTab.qml b/quickshell/Modules/Settings/KeybindsTab.qml index b0d4b1ee..ac6e0d0d 100644 --- a/quickshell/Modules/Settings/KeybindsTab.qml +++ b/quickshell/Modules/Settings/KeybindsTab.qml @@ -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 } } diff --git a/quickshell/Modules/Settings/LauncherTab.qml b/quickshell/Modules/Settings/LauncherTab.qml index 37f60914..ab745cca 100644 --- a/quickshell/Modules/Settings/LauncherTab.qml +++ b/quickshell/Modules/Settings/LauncherTab.qml @@ -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 { diff --git a/quickshell/Modules/Settings/ThemeColorsTab.qml b/quickshell/Modules/Settings/ThemeColorsTab.qml index 51192c11..6ba2d723 100644 --- a/quickshell/Modules/Settings/ThemeColorsTab.qml +++ b/quickshell/Modules/Settings/ThemeColorsTab.qml @@ -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 diff --git a/quickshell/Modules/Settings/Widgets/SettingsCard.qml b/quickshell/Modules/Settings/Widgets/SettingsCard.qml index 9c4def7d..4d64119b 100644 --- a/quickshell/Modules/Settings/Widgets/SettingsCard.qml +++ b/quickshell/Modules/Settings/Widgets/SettingsCard.qml @@ -135,6 +135,8 @@ StyledRect { color: Theme.surfaceText anchors.verticalCenter: parent.verticalCenter visible: root.title !== "" + width: implicitWidth + horizontalAlignment: Text.AlignLeft } } diff --git a/quickshell/Widgets/DankTextField.qml b/quickshell/Widgets/DankTextField.qml index 2951f555..a801e6e1 100644 --- a/quickshell/Widgets/DankTextField.qml +++ b/quickshell/Widgets/DankTextField.qml @@ -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 diff --git a/quickshell/Widgets/KeybindItem.qml b/quickshell/Widgets/KeybindItem.qml index 714fcca6..de6b1542 100644 --- a/quickshell/Widgets/KeybindItem.qml +++ b/quickshell/Widgets/KeybindItem.qml @@ -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 } }