From ba5bf0cabc51aa95e889bf29e891fd8bb3e9222c Mon Sep 17 00:00:00 2001 From: bbedward Date: Thu, 12 Feb 2026 11:58:32 -0500 Subject: [PATCH] i18n: general RTL fixes --- quickshell/Modals/WindowRuleModal.qml | 37 +++++++++++++++++++ quickshell/Modules/DankDash/WeatherTab.qml | 8 ++++ quickshell/Modules/Settings/AudioTab.qml | 18 ++++++++- .../DisplayConfig/IncludeWarningBox.qml | 6 +++ .../DisplayConfig/NoBackendMessage.qml | 6 +++ .../Settings/DisplayConfig/OutputCard.qml | 14 ++++++- .../Modules/Settings/DisplayConfigTab.qml | 14 +++++++ .../Modules/Settings/DisplayWidgetsTab.qml | 1 + quickshell/Modules/Settings/NetworkTab.qml | 29 +++++++++++++++ quickshell/Modules/Settings/PrinterTab.qml | 22 +++++++++++ .../Settings/Widgets/DeviceAliasRow.qml | 7 +++- .../Modules/Settings/WindowRulesTab.qml | 3 ++ 12 files changed, 161 insertions(+), 4 deletions(-) diff --git a/quickshell/Modals/WindowRuleModal.qml b/quickshell/Modals/WindowRuleModal.qml index ed19c4c4..7490333c 100644 --- a/quickshell/Modals/WindowRuleModal.qml +++ b/quickshell/Modals/WindowRuleModal.qml @@ -305,6 +305,8 @@ FloatingWindow { color: Theme.primary topPadding: Theme.spacingM bottomPadding: Theme.spacingXS + width: parent.width + horizontalAlignment: Text.AlignLeft } component CheckboxRow: Row { @@ -371,6 +373,9 @@ FloatingWindow { anchors.fill: parent focus: true + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + Keys.onEscapePressed: event => { hide(); event.accepted = true; @@ -401,12 +406,16 @@ FloatingWindow { font.pixelSize: Theme.fontSizeLarge color: Theme.surfaceText font.weight: Font.Medium + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { text: I18n.tr("Configure match criteria and actions") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceTextMedium + width: parent.width + horizontalAlignment: Text.AlignLeft } } } @@ -550,6 +559,8 @@ FloatingWindow { text: I18n.tr("Output") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -575,6 +586,8 @@ FloatingWindow { text: I18n.tr("Workspace") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -606,6 +619,8 @@ FloatingWindow { text: I18n.tr("Column Width") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -631,6 +646,8 @@ FloatingWindow { text: I18n.tr("Window Height") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -710,6 +727,8 @@ FloatingWindow { text: I18n.tr("Block Out From") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } DankDropdown { @@ -730,6 +749,8 @@ FloatingWindow { text: I18n.tr("Column Display") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } DankDropdown { @@ -802,6 +823,8 @@ FloatingWindow { text: I18n.tr("Min W") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -827,6 +850,8 @@ FloatingWindow { text: I18n.tr("Max W") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -852,6 +877,8 @@ FloatingWindow { text: I18n.tr("Min H") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -877,6 +904,8 @@ FloatingWindow { text: I18n.tr("Max H") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -960,6 +989,8 @@ FloatingWindow { text: I18n.tr("Size") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -985,6 +1016,8 @@ FloatingWindow { text: I18n.tr("Move") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -1016,6 +1049,8 @@ FloatingWindow { text: I18n.tr("Monitor") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { @@ -1041,6 +1076,8 @@ FloatingWindow { text: I18n.tr("Workspace") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } InputField { diff --git a/quickshell/Modules/DankDash/WeatherTab.qml b/quickshell/Modules/DankDash/WeatherTab.qml index 65680b33..e78400ec 100644 --- a/quickshell/Modules/DankDash/WeatherTab.qml +++ b/quickshell/Modules/DankDash/WeatherTab.qml @@ -258,11 +258,13 @@ Item { anchors.verticalCenter: parent.verticalCenter Item { + anchors.left: parent.left width: tempText.width + unitText.width + Theme.spacingXS height: tempText.height StyledText { id: tempText + LayoutMirroring.enabled: false text: (SettingsData.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp) + "°" font.pixelSize: Theme.fontSizeXLarge + 8 color: Theme.surfaceText @@ -273,6 +275,7 @@ Item { StyledText { id: unitText + LayoutMirroring.enabled: false text: SettingsData.useFahrenheit ? "F" : "C" font.pixelSize: Theme.fontSizeMedium color: Theme.withAlpha(Theme.surfaceText, 0.7) @@ -297,6 +300,7 @@ Item { text: WeatherService.getWeatherCondition(WeatherService.weather.wCode) font.pixelSize: Theme.fontSizeMedium color: Theme.withAlpha(Theme.surfaceText, 0.7) + anchors.left: parent.left } StyledText { @@ -304,6 +308,7 @@ Item { text: I18n.tr("Feels Like %1°", "weather feels like temperature").arg(feelsLike) font.pixelSize: Theme.fontSizeSmall color: Theme.withAlpha(Theme.surfaceText, 0.5) + anchors.left: parent.left } StyledText { @@ -311,6 +316,7 @@ Item { font.pixelSize: Theme.fontSizeSmall color: Theme.withAlpha(Theme.surfaceText, 0.5) visible: text.length > 0 + anchors.left: parent.left } } } @@ -343,12 +349,14 @@ Item { text: modelData.label font.pixelSize: Theme.fontSizeSmall color: Theme.withAlpha(Theme.surfaceText, 0.5) + anchors.left: parent.left } StyledText { text: modelData.value font.pixelSize: Theme.fontSizeMedium color: Theme.surfaceText + anchors.left: parent.left } } } diff --git a/quickshell/Modules/Settings/AudioTab.qml b/quickshell/Modules/Settings/AudioTab.qml index bd394204..44a52f33 100644 --- a/quickshell/Modules/Settings/AudioTab.qml +++ b/quickshell/Modules/Settings/AudioTab.qml @@ -8,6 +8,9 @@ import qs.Modules.Settings.Widgets Item { id: root + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + property var outputDevices: [] property var inputDevices: [] property bool showEditDialog: false @@ -118,6 +121,7 @@ Item { font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText wrapMode: Text.WordWrap + horizontalAlignment: Text.AlignLeft } Rectangle { @@ -158,10 +162,12 @@ Item { StyledText { id: maxVolLabel text: I18n.tr("Max Volume", "Audio settings: maximum volume limit per device") - x: Theme.spacingM + Theme.iconSize + Theme.spacingM + anchors.left: parent.left + anchors.leftMargin: Theme.spacingM + Theme.iconSize + Theme.spacingM anchors.verticalCenter: parent.verticalCenter font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + horizontalAlignment: Text.AlignLeft } DankSlider { @@ -221,6 +227,7 @@ Item { font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText wrapMode: Text.WordWrap + horizontalAlignment: Text.AlignLeft } Rectangle { @@ -311,6 +318,7 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + horizontalAlignment: Text.AlignHCenter anchors.horizontalCenter: parent.horizontalCenter } @@ -318,6 +326,7 @@ Item { text: I18n.tr("This may take a few seconds", "Loading overlay subtitle") font.pixelSize: Theme.fontSizeMedium color: Theme.surfaceVariantText + horizontalAlignment: Text.AlignHCenter anchors.horizontalCenter: parent.horizontalCenter } } @@ -388,6 +397,7 @@ Item { color: Theme.surfaceText width: parent.width wrapMode: Text.Wrap + horizontalAlignment: Text.AlignLeft } StyledText { @@ -396,6 +406,7 @@ Item { color: Theme.surfaceVariantText width: parent.width elide: Text.ElideRight + horizontalAlignment: Text.AlignLeft } StyledText { @@ -406,6 +417,7 @@ Item { width: parent.width elide: Text.ElideRight opacity: 0.7 + horizontalAlignment: Text.AlignLeft } } } @@ -419,6 +431,8 @@ Item { font.pixelSize: Theme.fontSizeMedium font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } DankTextField { @@ -458,10 +472,12 @@ Item { font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText wrapMode: Text.WordWrap + horizontalAlignment: Text.AlignLeft } } Row { + LayoutMirroring.enabled: false width: parent.width spacing: Theme.spacingM layoutDirection: Qt.RightToLeft diff --git a/quickshell/Modules/Settings/DisplayConfig/IncludeWarningBox.qml b/quickshell/Modules/Settings/DisplayConfig/IncludeWarningBox.qml index fd97e568..f5f270ba 100644 --- a/quickshell/Modules/Settings/DisplayConfig/IncludeWarningBox.qml +++ b/quickshell/Modules/Settings/DisplayConfig/IncludeWarningBox.qml @@ -5,6 +5,9 @@ import qs.Widgets StyledRect { id: root + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + width: parent.width height: warningContent.implicitHeight + Theme.spacingL * 2 radius: Theme.cornerRadius @@ -50,6 +53,8 @@ StyledRect { font.pixelSize: Theme.fontSizeMedium font.weight: Font.Medium color: Theme.primary + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -64,6 +69,7 @@ StyledRect { color: Theme.surfaceVariantText wrapMode: Text.WordWrap width: parent.width + horizontalAlignment: Text.AlignLeft } } diff --git a/quickshell/Modules/Settings/DisplayConfig/NoBackendMessage.qml b/quickshell/Modules/Settings/DisplayConfig/NoBackendMessage.qml index 039921ce..93ab1247 100644 --- a/quickshell/Modules/Settings/DisplayConfig/NoBackendMessage.qml +++ b/quickshell/Modules/Settings/DisplayConfig/NoBackendMessage.qml @@ -5,6 +5,9 @@ import qs.Widgets StyledRect { id: root + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + width: parent.width height: messageContent.implicitHeight + Theme.spacingL * 2 radius: Theme.cornerRadius @@ -39,6 +42,8 @@ StyledRect { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -47,6 +52,7 @@ StyledRect { color: Theme.surfaceVariantText wrapMode: Text.WordWrap width: parent.width + horizontalAlignment: Text.AlignLeft } } } diff --git a/quickshell/Modules/Settings/DisplayConfig/OutputCard.qml b/quickshell/Modules/Settings/DisplayConfig/OutputCard.qml index 91cfeac9..0da1175b 100644 --- a/quickshell/Modules/Settings/DisplayConfig/OutputCard.qml +++ b/quickshell/Modules/Settings/DisplayConfig/OutputCard.qml @@ -6,6 +6,9 @@ import qs.Widgets StyledRect { id: root + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + required property string outputName required property var outputData property bool isConnected: outputData?.connected ?? false @@ -44,12 +47,16 @@ StyledRect { font.pixelSize: Theme.fontSizeMedium font.weight: Font.Medium color: root.isConnected ? Theme.surfaceText : Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { text: (root.outputData?.model ?? "") + (root.outputData?.make ? " - " + root.outputData.make : "") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } } @@ -131,6 +138,7 @@ StyledRect { color: Theme.surfaceVariantText wrapMode: Text.WordWrap width: parent.width + horizontalAlignment: Text.AlignLeft } Row { @@ -146,6 +154,8 @@ StyledRect { text: I18n.tr("Scale") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } Item { @@ -230,6 +240,8 @@ StyledRect { text: I18n.tr("Transform") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } DankDropdown { @@ -264,7 +276,6 @@ StyledRect { DankDropdown { width: parent.width text: I18n.tr("Variable Refresh Rate") - addHorizontalPadding: true visible: root.isConnected && CompositorService.isHyprland && (DisplayConfigState.outputs[root.outputName]?.vrr_supported ?? false) options: [I18n.tr("Off"), I18n.tr("On"), I18n.tr("Fullscreen Only")] currentValue: { @@ -288,7 +299,6 @@ StyledRect { DankDropdown { width: parent.width text: I18n.tr("Variable Refresh Rate") - addHorizontalPadding: true visible: root.isConnected && CompositorService.isNiri && (DisplayConfigState.outputs[root.outputName]?.vrr_supported ?? false) options: [I18n.tr("Off"), I18n.tr("On"), I18n.tr("On-Demand")] currentValue: { diff --git a/quickshell/Modules/Settings/DisplayConfigTab.qml b/quickshell/Modules/Settings/DisplayConfigTab.qml index a0cbc857..61b373db 100644 --- a/quickshell/Modules/Settings/DisplayConfigTab.qml +++ b/quickshell/Modules/Settings/DisplayConfigTab.qml @@ -8,6 +8,9 @@ import qs.Modules.Settings.DisplayConfig Item { id: root + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + property string selectedProfileId: SettingsData.getActiveDisplayProfile(CompositorService.compositor) property bool showNewProfileDialog: false property bool showDeleteConfirmDialog: false @@ -122,6 +125,8 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -130,6 +135,7 @@ Item { color: Theme.surfaceVariantText wrapMode: Text.WordWrap width: parent.width + horizontalAlignment: Text.AlignLeft } } @@ -144,6 +150,7 @@ Item { text: I18n.tr("Auto") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + horizontalAlignment: Text.AlignHCenter anchors.horizontalCenter: parent.horizontalCenter } @@ -273,6 +280,7 @@ Item { color: Theme.surfaceText width: parent.width wrapMode: Text.WordWrap + horizontalAlignment: Text.AlignLeft } Row { @@ -357,6 +365,8 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -365,6 +375,7 @@ Item { color: Theme.surfaceVariantText wrapMode: Text.WordWrap width: parent.width + horizontalAlignment: Text.AlignLeft } } @@ -378,6 +389,7 @@ Item { text: I18n.tr("Snap") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + horizontalAlignment: Text.AlignHCenter anchors.horizontalCenter: parent.horizontalCenter } @@ -401,6 +413,7 @@ Item { text: I18n.tr("Config Format") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + horizontalAlignment: Text.AlignHCenter anchors.horizontalCenter: parent.horizontalCenter } @@ -490,6 +503,7 @@ Item { } Row { + LayoutMirroring.enabled: false width: parent.width spacing: Theme.spacingS visible: DisplayConfigState.hasPendingChanges diff --git a/quickshell/Modules/Settings/DisplayWidgetsTab.qml b/quickshell/Modules/Settings/DisplayWidgetsTab.qml index 0e5d449f..80cdb03e 100644 --- a/quickshell/Modules/Settings/DisplayWidgetsTab.qml +++ b/quickshell/Modules/Settings/DisplayWidgetsTab.qml @@ -282,6 +282,7 @@ Item { } Row { + width: parent.width spacing: Theme.spacingS property var wlrOutput: WlrOutputService.wlrOutputAvailable ? WlrOutputService.getOutput(modelData.name) : null diff --git a/quickshell/Modules/Settings/NetworkTab.qml b/quickshell/Modules/Settings/NetworkTab.qml index fb9d7f7f..fd84aedb 100644 --- a/quickshell/Modules/Settings/NetworkTab.qml +++ b/quickshell/Modules/Settings/NetworkTab.qml @@ -12,6 +12,9 @@ import qs.Widgets Item { id: networkTab + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + property string expandedVpnUuid: "" property string expandedWifiSsid: "" property string expandedEthDevice: "" @@ -137,12 +140,16 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { text: I18n.tr("Overview of your network connections") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } } } @@ -322,6 +329,8 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -336,6 +345,8 @@ Item { } font.pixelSize: Theme.fontSizeSmall color: NetworkService.ethernetConnected ? Theme.primary : Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } } } @@ -356,6 +367,8 @@ Item { font.pixelSize: Theme.fontSizeMedium font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } Repeater { @@ -419,9 +432,11 @@ Item { font.weight: isConnected ? Font.Medium : Font.Normal elide: Text.ElideRight width: parent.width + horizontalAlignment: Text.AlignLeft } Row { + anchors.left: parent.left spacing: Theme.spacingXS StyledText { @@ -691,6 +706,8 @@ Item { font.pixelSize: Theme.fontSizeMedium font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } Repeater { @@ -792,6 +809,8 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -806,6 +825,8 @@ Item { } font.pixelSize: Theme.fontSizeSmall color: NetworkService.wifiConnected ? Theme.primary : Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } } @@ -1142,6 +1163,7 @@ Item { width: parent.width - 20 - Theme.spacingS Row { + anchors.left: parent.left spacing: Theme.spacingXS StyledText { @@ -1170,6 +1192,7 @@ Item { } Row { + anchors.left: parent.left spacing: Theme.spacingXS StyledText { @@ -1511,6 +1534,8 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -1524,6 +1549,8 @@ Item { } font.pixelSize: Theme.fontSizeSmall color: DMSNetworkService.connected ? Theme.primary : Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } } @@ -1715,12 +1742,14 @@ Item { color: isActive ? Theme.primary : Theme.surfaceText elide: Text.ElideRight width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { text: VPNService.getVpnTypeFromProfile(modelData) font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + anchors.left: parent.left } } diff --git a/quickshell/Modules/Settings/PrinterTab.qml b/quickshell/Modules/Settings/PrinterTab.qml index f03399b8..8b48ff00 100644 --- a/quickshell/Modules/Settings/PrinterTab.qml +++ b/quickshell/Modules/Settings/PrinterTab.qml @@ -10,6 +10,9 @@ import qs.Widgets Item { id: printerTab + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + property bool showAddPrinter: false property string newPrinterName: "" property string selectedDeviceUri: "" @@ -110,6 +113,8 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } } } @@ -212,12 +217,16 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { text: I18n.tr("Configure a new printer") font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } } @@ -471,6 +480,7 @@ Item { } Row { + LayoutMirroring.enabled: false width: parent.width spacing: Theme.spacingS layoutDirection: Qt.RightToLeft @@ -529,6 +539,8 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -540,6 +552,8 @@ Item { } font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } } @@ -652,9 +666,11 @@ Item { font.weight: CupsService.selectedPrinter === modelData ? Font.Medium : Font.Normal elide: Text.ElideRight width: parent.width + horizontalAlignment: Text.AlignLeft } Row { + anchors.left: parent.left spacing: Theme.spacingXS StyledText { @@ -1085,6 +1101,7 @@ Item { color: Theme.surfaceText elide: Text.ElideRight width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -1095,6 +1112,7 @@ Item { } font.pixelSize: Theme.fontSizeSmall - 1 color: Theme.surfaceVariantText + anchors.left: parent.left } } } @@ -1222,12 +1240,16 @@ Item { font.pixelSize: Theme.fontSizeLarge font.weight: Font.Medium color: Theme.surfaceText + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { text: I18n.tr("%1 class(es)").arg(CupsService.printerClasses.length) font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText + width: parent.width + horizontalAlignment: Text.AlignLeft } } diff --git a/quickshell/Modules/Settings/Widgets/DeviceAliasRow.qml b/quickshell/Modules/Settings/Widgets/DeviceAliasRow.qml index d6a64c3c..a940bf33 100644 --- a/quickshell/Modules/Settings/Widgets/DeviceAliasRow.qml +++ b/quickshell/Modules/Settings/Widgets/DeviceAliasRow.qml @@ -1,7 +1,6 @@ pragma ComponentBehavior: Bound import QtQuick -import QtQuick.Controls import qs.Common import qs.Services import qs.Widgets @@ -9,6 +8,9 @@ import qs.Widgets Rectangle { id: root + LayoutMirroring.enabled: I18n.isRtl + LayoutMirroring.childrenInherit: true + required property var deviceNode property string deviceType: "output" @@ -51,6 +53,7 @@ Rectangle { color: Theme.surfaceText width: parent.width elide: Text.ElideRight + horizontalAlignment: Text.AlignLeft } Column { @@ -68,6 +71,7 @@ Rectangle { width: parent.width - (customAliasLabel.visible ? customAliasLabel.width + Theme.spacingS : 0) elide: Text.ElideRight anchors.verticalCenter: parent.verticalCenter + horizontalAlignment: Text.AlignLeft } Rectangle { @@ -98,6 +102,7 @@ Rectangle { width: parent.width elide: Text.ElideRight opacity: 0.6 + horizontalAlignment: Text.AlignLeft } } } diff --git a/quickshell/Modules/Settings/WindowRulesTab.qml b/quickshell/Modules/Settings/WindowRulesTab.qml index 8ac15888..5e1310e4 100644 --- a/quickshell/Modules/Settings/WindowRulesTab.qml +++ b/quickshell/Modules/Settings/WindowRulesTab.qml @@ -346,6 +346,8 @@ Item { font.pixelSize: Theme.fontSizeMedium font.weight: Font.Medium color: Theme.warning + width: parent.width + horizontalAlignment: Text.AlignLeft } StyledText { @@ -355,6 +357,7 @@ Item { color: Theme.surfaceVariantText wrapMode: Text.WordWrap width: parent.width + horizontalAlignment: Text.AlignLeft } }