1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-12 16:52:10 -04:00

i18n: general RTL fixes

This commit is contained in:
bbedward
2026-02-12 11:58:32 -05:00
parent 96b9d7aab3
commit ba5bf0cabc
12 changed files with 161 additions and 4 deletions

View File

@@ -305,6 +305,8 @@ FloatingWindow {
color: Theme.primary color: Theme.primary
topPadding: Theme.spacingM topPadding: Theme.spacingM
bottomPadding: Theme.spacingXS bottomPadding: Theme.spacingXS
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
component CheckboxRow: Row { component CheckboxRow: Row {
@@ -371,6 +373,9 @@ FloatingWindow {
anchors.fill: parent anchors.fill: parent
focus: true focus: true
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
Keys.onEscapePressed: event => { Keys.onEscapePressed: event => {
hide(); hide();
event.accepted = true; event.accepted = true;
@@ -401,12 +406,16 @@ FloatingWindow {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
color: Theme.surfaceText color: Theme.surfaceText
font.weight: Font.Medium font.weight: Font.Medium
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
text: I18n.tr("Configure match criteria and actions") text: I18n.tr("Configure match criteria and actions")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceTextMedium color: Theme.surfaceTextMedium
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
} }
@@ -550,6 +559,8 @@ FloatingWindow {
text: I18n.tr("Output") text: I18n.tr("Output")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -575,6 +586,8 @@ FloatingWindow {
text: I18n.tr("Workspace") text: I18n.tr("Workspace")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -606,6 +619,8 @@ FloatingWindow {
text: I18n.tr("Column Width") text: I18n.tr("Column Width")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -631,6 +646,8 @@ FloatingWindow {
text: I18n.tr("Window Height") text: I18n.tr("Window Height")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -710,6 +727,8 @@ FloatingWindow {
text: I18n.tr("Block Out From") text: I18n.tr("Block Out From")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
DankDropdown { DankDropdown {
@@ -730,6 +749,8 @@ FloatingWindow {
text: I18n.tr("Column Display") text: I18n.tr("Column Display")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
DankDropdown { DankDropdown {
@@ -802,6 +823,8 @@ FloatingWindow {
text: I18n.tr("Min W") text: I18n.tr("Min W")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -827,6 +850,8 @@ FloatingWindow {
text: I18n.tr("Max W") text: I18n.tr("Max W")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -852,6 +877,8 @@ FloatingWindow {
text: I18n.tr("Min H") text: I18n.tr("Min H")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -877,6 +904,8 @@ FloatingWindow {
text: I18n.tr("Max H") text: I18n.tr("Max H")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -960,6 +989,8 @@ FloatingWindow {
text: I18n.tr("Size") text: I18n.tr("Size")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -985,6 +1016,8 @@ FloatingWindow {
text: I18n.tr("Move") text: I18n.tr("Move")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -1016,6 +1049,8 @@ FloatingWindow {
text: I18n.tr("Monitor") text: I18n.tr("Monitor")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {
@@ -1041,6 +1076,8 @@ FloatingWindow {
text: I18n.tr("Workspace") text: I18n.tr("Workspace")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
InputField { InputField {

View File

@@ -258,11 +258,13 @@ Item {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
Item { Item {
anchors.left: parent.left
width: tempText.width + unitText.width + Theme.spacingXS width: tempText.width + unitText.width + Theme.spacingXS
height: tempText.height height: tempText.height
StyledText { StyledText {
id: tempText id: tempText
LayoutMirroring.enabled: false
text: (SettingsData.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp) + "°" text: (SettingsData.useFahrenheit ? WeatherService.weather.tempF : WeatherService.weather.temp) + "°"
font.pixelSize: Theme.fontSizeXLarge + 8 font.pixelSize: Theme.fontSizeXLarge + 8
color: Theme.surfaceText color: Theme.surfaceText
@@ -273,6 +275,7 @@ Item {
StyledText { StyledText {
id: unitText id: unitText
LayoutMirroring.enabled: false
text: SettingsData.useFahrenheit ? "F" : "C" text: SettingsData.useFahrenheit ? "F" : "C"
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
color: Theme.withAlpha(Theme.surfaceText, 0.7) color: Theme.withAlpha(Theme.surfaceText, 0.7)
@@ -297,6 +300,7 @@ Item {
text: WeatherService.getWeatherCondition(WeatherService.weather.wCode) text: WeatherService.getWeatherCondition(WeatherService.weather.wCode)
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
color: Theme.withAlpha(Theme.surfaceText, 0.7) color: Theme.withAlpha(Theme.surfaceText, 0.7)
anchors.left: parent.left
} }
StyledText { StyledText {
@@ -304,6 +308,7 @@ Item {
text: I18n.tr("Feels Like %1°", "weather feels like temperature").arg(feelsLike) text: I18n.tr("Feels Like %1°", "weather feels like temperature").arg(feelsLike)
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.withAlpha(Theme.surfaceText, 0.5) color: Theme.withAlpha(Theme.surfaceText, 0.5)
anchors.left: parent.left
} }
StyledText { StyledText {
@@ -311,6 +316,7 @@ Item {
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.withAlpha(Theme.surfaceText, 0.5) color: Theme.withAlpha(Theme.surfaceText, 0.5)
visible: text.length > 0 visible: text.length > 0
anchors.left: parent.left
} }
} }
} }
@@ -343,12 +349,14 @@ Item {
text: modelData.label text: modelData.label
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.withAlpha(Theme.surfaceText, 0.5) color: Theme.withAlpha(Theme.surfaceText, 0.5)
anchors.left: parent.left
} }
StyledText { StyledText {
text: modelData.value text: modelData.value
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText color: Theme.surfaceText
anchors.left: parent.left
} }
} }
} }

View File

@@ -8,6 +8,9 @@ import qs.Modules.Settings.Widgets
Item { Item {
id: root id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property var outputDevices: [] property var outputDevices: []
property var inputDevices: [] property var inputDevices: []
property bool showEditDialog: false property bool showEditDialog: false
@@ -118,6 +121,7 @@ Item {
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignLeft
} }
Rectangle { Rectangle {
@@ -158,10 +162,12 @@ Item {
StyledText { StyledText {
id: maxVolLabel id: maxVolLabel
text: I18n.tr("Max Volume", "Audio settings: maximum volume limit per device") 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 anchors.verticalCenter: parent.verticalCenter
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
horizontalAlignment: Text.AlignLeft
} }
DankSlider { DankSlider {
@@ -221,6 +227,7 @@ Item {
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignLeft
} }
Rectangle { Rectangle {
@@ -311,6 +318,7 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
@@ -318,6 +326,7 @@ Item {
text: I18n.tr("This may take a few seconds", "Loading overlay subtitle") text: I18n.tr("This may take a few seconds", "Loading overlay subtitle")
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
} }
@@ -388,6 +397,7 @@ Item {
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width width: parent.width
wrapMode: Text.Wrap wrapMode: Text.Wrap
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -396,6 +406,7 @@ Item {
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width width: parent.width
elide: Text.ElideRight elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -406,6 +417,7 @@ Item {
width: parent.width width: parent.width
elide: Text.ElideRight elide: Text.ElideRight
opacity: 0.7 opacity: 0.7
horizontalAlignment: Text.AlignLeft
} }
} }
} }
@@ -419,6 +431,8 @@ Item {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
DankTextField { DankTextField {
@@ -458,10 +472,12 @@ Item {
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignLeft
} }
} }
Row { Row {
LayoutMirroring.enabled: false
width: parent.width width: parent.width
spacing: Theme.spacingM spacing: Theme.spacingM
layoutDirection: Qt.RightToLeft layoutDirection: Qt.RightToLeft

View File

@@ -5,6 +5,9 @@ import qs.Widgets
StyledRect { StyledRect {
id: root id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
width: parent.width width: parent.width
height: warningContent.implicitHeight + Theme.spacingL * 2 height: warningContent.implicitHeight + Theme.spacingL * 2
radius: Theme.cornerRadius radius: Theme.cornerRadius
@@ -50,6 +53,8 @@ StyledRect {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.primary color: Theme.primary
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -64,6 +69,7 @@ StyledRect {
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }

View File

@@ -5,6 +5,9 @@ import qs.Widgets
StyledRect { StyledRect {
id: root id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
width: parent.width width: parent.width
height: messageContent.implicitHeight + Theme.spacingL * 2 height: messageContent.implicitHeight + Theme.spacingL * 2
radius: Theme.cornerRadius radius: Theme.cornerRadius
@@ -39,6 +42,8 @@ StyledRect {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -47,6 +52,7 @@ StyledRect {
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
} }

View File

@@ -6,6 +6,9 @@ import qs.Widgets
StyledRect { StyledRect {
id: root id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
required property string outputName required property string outputName
required property var outputData required property var outputData
property bool isConnected: outputData?.connected ?? false property bool isConnected: outputData?.connected ?? false
@@ -44,12 +47,16 @@ StyledRect {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium font.weight: Font.Medium
color: root.isConnected ? Theme.surfaceText : Theme.surfaceVariantText color: root.isConnected ? Theme.surfaceText : Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
text: (root.outputData?.model ?? "") + (root.outputData?.make ? " - " + root.outputData.make : "") text: (root.outputData?.model ?? "") + (root.outputData?.make ? " - " + root.outputData.make : "")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
@@ -131,6 +138,7 @@ StyledRect {
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
Row { Row {
@@ -146,6 +154,8 @@ StyledRect {
text: I18n.tr("Scale") text: I18n.tr("Scale")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
Item { Item {
@@ -230,6 +240,8 @@ StyledRect {
text: I18n.tr("Transform") text: I18n.tr("Transform")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
DankDropdown { DankDropdown {
@@ -264,7 +276,6 @@ StyledRect {
DankDropdown { DankDropdown {
width: parent.width width: parent.width
text: I18n.tr("Variable Refresh Rate") text: I18n.tr("Variable Refresh Rate")
addHorizontalPadding: true
visible: root.isConnected && CompositorService.isHyprland && (DisplayConfigState.outputs[root.outputName]?.vrr_supported ?? false) visible: root.isConnected && CompositorService.isHyprland && (DisplayConfigState.outputs[root.outputName]?.vrr_supported ?? false)
options: [I18n.tr("Off"), I18n.tr("On"), I18n.tr("Fullscreen Only")] options: [I18n.tr("Off"), I18n.tr("On"), I18n.tr("Fullscreen Only")]
currentValue: { currentValue: {
@@ -288,7 +299,6 @@ StyledRect {
DankDropdown { DankDropdown {
width: parent.width width: parent.width
text: I18n.tr("Variable Refresh Rate") text: I18n.tr("Variable Refresh Rate")
addHorizontalPadding: true
visible: root.isConnected && CompositorService.isNiri && (DisplayConfigState.outputs[root.outputName]?.vrr_supported ?? false) visible: root.isConnected && CompositorService.isNiri && (DisplayConfigState.outputs[root.outputName]?.vrr_supported ?? false)
options: [I18n.tr("Off"), I18n.tr("On"), I18n.tr("On-Demand")] options: [I18n.tr("Off"), I18n.tr("On"), I18n.tr("On-Demand")]
currentValue: { currentValue: {

View File

@@ -8,6 +8,9 @@ import qs.Modules.Settings.DisplayConfig
Item { Item {
id: root id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property string selectedProfileId: SettingsData.getActiveDisplayProfile(CompositorService.compositor) property string selectedProfileId: SettingsData.getActiveDisplayProfile(CompositorService.compositor)
property bool showNewProfileDialog: false property bool showNewProfileDialog: false
property bool showDeleteConfirmDialog: false property bool showDeleteConfirmDialog: false
@@ -122,6 +125,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -130,6 +135,7 @@ Item {
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
@@ -144,6 +150,7 @@ Item {
text: I18n.tr("Auto") text: I18n.tr("Auto")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
@@ -273,6 +280,7 @@ Item {
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width width: parent.width
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignLeft
} }
Row { Row {
@@ -357,6 +365,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -365,6 +375,7 @@ Item {
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
@@ -378,6 +389,7 @@ Item {
text: I18n.tr("Snap") text: I18n.tr("Snap")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
@@ -401,6 +413,7 @@ Item {
text: I18n.tr("Config Format") text: I18n.tr("Config Format")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
@@ -490,6 +503,7 @@ Item {
} }
Row { Row {
LayoutMirroring.enabled: false
width: parent.width width: parent.width
spacing: Theme.spacingS spacing: Theme.spacingS
visible: DisplayConfigState.hasPendingChanges visible: DisplayConfigState.hasPendingChanges

View File

@@ -282,6 +282,7 @@ Item {
} }
Row { Row {
width: parent.width
spacing: Theme.spacingS spacing: Theme.spacingS
property var wlrOutput: WlrOutputService.wlrOutputAvailable ? WlrOutputService.getOutput(modelData.name) : null property var wlrOutput: WlrOutputService.wlrOutputAvailable ? WlrOutputService.getOutput(modelData.name) : null

View File

@@ -12,6 +12,9 @@ import qs.Widgets
Item { Item {
id: networkTab id: networkTab
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property string expandedVpnUuid: "" property string expandedVpnUuid: ""
property string expandedWifiSsid: "" property string expandedWifiSsid: ""
property string expandedEthDevice: "" property string expandedEthDevice: ""
@@ -137,12 +140,16 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
text: I18n.tr("Overview of your network connections") text: I18n.tr("Overview of your network connections")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
} }
@@ -322,6 +329,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -336,6 +345,8 @@ Item {
} }
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: NetworkService.ethernetConnected ? Theme.primary : Theme.surfaceVariantText color: NetworkService.ethernetConnected ? Theme.primary : Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
} }
@@ -356,6 +367,8 @@ Item {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
Repeater { Repeater {
@@ -419,9 +432,11 @@ Item {
font.weight: isConnected ? Font.Medium : Font.Normal font.weight: isConnected ? Font.Medium : Font.Normal
elide: Text.ElideRight elide: Text.ElideRight
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
Row { Row {
anchors.left: parent.left
spacing: Theme.spacingXS spacing: Theme.spacingXS
StyledText { StyledText {
@@ -691,6 +706,8 @@ Item {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
Repeater { Repeater {
@@ -792,6 +809,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -806,6 +825,8 @@ Item {
} }
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: NetworkService.wifiConnected ? Theme.primary : Theme.surfaceVariantText color: NetworkService.wifiConnected ? Theme.primary : Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
@@ -1142,6 +1163,7 @@ Item {
width: parent.width - 20 - Theme.spacingS width: parent.width - 20 - Theme.spacingS
Row { Row {
anchors.left: parent.left
spacing: Theme.spacingXS spacing: Theme.spacingXS
StyledText { StyledText {
@@ -1170,6 +1192,7 @@ Item {
} }
Row { Row {
anchors.left: parent.left
spacing: Theme.spacingXS spacing: Theme.spacingXS
StyledText { StyledText {
@@ -1511,6 +1534,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -1524,6 +1549,8 @@ Item {
} }
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: DMSNetworkService.connected ? Theme.primary : Theme.surfaceVariantText color: DMSNetworkService.connected ? Theme.primary : Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
@@ -1715,12 +1742,14 @@ Item {
color: isActive ? Theme.primary : Theme.surfaceText color: isActive ? Theme.primary : Theme.surfaceText
elide: Text.ElideRight elide: Text.ElideRight
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
text: VPNService.getVpnTypeFromProfile(modelData) text: VPNService.getVpnTypeFromProfile(modelData)
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
anchors.left: parent.left
} }
} }

View File

@@ -10,6 +10,9 @@ import qs.Widgets
Item { Item {
id: printerTab id: printerTab
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
property bool showAddPrinter: false property bool showAddPrinter: false
property string newPrinterName: "" property string newPrinterName: ""
property string selectedDeviceUri: "" property string selectedDeviceUri: ""
@@ -110,6 +113,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
} }
@@ -212,12 +217,16 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
text: I18n.tr("Configure a new printer") text: I18n.tr("Configure a new printer")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
@@ -471,6 +480,7 @@ Item {
} }
Row { Row {
LayoutMirroring.enabled: false
width: parent.width width: parent.width
spacing: Theme.spacingS spacing: Theme.spacingS
layoutDirection: Qt.RightToLeft layoutDirection: Qt.RightToLeft
@@ -529,6 +539,8 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -540,6 +552,8 @@ Item {
} }
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }
@@ -652,9 +666,11 @@ Item {
font.weight: CupsService.selectedPrinter === modelData ? Font.Medium : Font.Normal font.weight: CupsService.selectedPrinter === modelData ? Font.Medium : Font.Normal
elide: Text.ElideRight elide: Text.ElideRight
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
Row { Row {
anchors.left: parent.left
spacing: Theme.spacingXS spacing: Theme.spacingXS
StyledText { StyledText {
@@ -1085,6 +1101,7 @@ Item {
color: Theme.surfaceText color: Theme.surfaceText
elide: Text.ElideRight elide: Text.ElideRight
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -1095,6 +1112,7 @@ Item {
} }
font.pixelSize: Theme.fontSizeSmall - 1 font.pixelSize: Theme.fontSizeSmall - 1
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
anchors.left: parent.left
} }
} }
} }
@@ -1222,12 +1240,16 @@ Item {
font.pixelSize: Theme.fontSizeLarge font.pixelSize: Theme.fontSizeLarge
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
text: I18n.tr("%1 class(es)").arg(CupsService.printerClasses.length) text: I18n.tr("%1 class(es)").arg(CupsService.printerClasses.length)
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }

View File

@@ -1,7 +1,6 @@
pragma ComponentBehavior: Bound pragma ComponentBehavior: Bound
import QtQuick import QtQuick
import QtQuick.Controls
import qs.Common import qs.Common
import qs.Services import qs.Services
import qs.Widgets import qs.Widgets
@@ -9,6 +8,9 @@ import qs.Widgets
Rectangle { Rectangle {
id: root id: root
LayoutMirroring.enabled: I18n.isRtl
LayoutMirroring.childrenInherit: true
required property var deviceNode required property var deviceNode
property string deviceType: "output" property string deviceType: "output"
@@ -51,6 +53,7 @@ Rectangle {
color: Theme.surfaceText color: Theme.surfaceText
width: parent.width width: parent.width
elide: Text.ElideRight elide: Text.ElideRight
horizontalAlignment: Text.AlignLeft
} }
Column { Column {
@@ -68,6 +71,7 @@ Rectangle {
width: parent.width - (customAliasLabel.visible ? customAliasLabel.width + Theme.spacingS : 0) width: parent.width - (customAliasLabel.visible ? customAliasLabel.width + Theme.spacingS : 0)
elide: Text.ElideRight elide: Text.ElideRight
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
horizontalAlignment: Text.AlignLeft
} }
Rectangle { Rectangle {
@@ -98,6 +102,7 @@ Rectangle {
width: parent.width width: parent.width
elide: Text.ElideRight elide: Text.ElideRight
opacity: 0.6 opacity: 0.6
horizontalAlignment: Text.AlignLeft
} }
} }
} }

View File

@@ -346,6 +346,8 @@ Item {
font.pixelSize: Theme.fontSizeMedium font.pixelSize: Theme.fontSizeMedium
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.warning color: Theme.warning
width: parent.width
horizontalAlignment: Text.AlignLeft
} }
StyledText { StyledText {
@@ -355,6 +357,7 @@ Item {
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
width: parent.width width: parent.width
horizontalAlignment: Text.AlignLeft
} }
} }