Bug 503272

Summary: Panel edit mode UI elements (main dialog, hover popups) don't enter RTL mode when needed
Product: [Plasma] plasmashell Reporter: easy_lad <uneasy_latitude544>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, niccolo.venerandi, notmart, olib141
Priority: NOR Keywords: rtl
Version First Reported In: 6.3.3   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.4.0
Sentry Crash Report:
Attachments: Toggle switches is in LTR not RTL
I actually realized that the whole interface when configuring panel is in LTR, you can even see the labels are at the left and the drop-down menu. I will add another screenshot too.
When hovering over the panel while in panel configuration mode, you can see text is at the left.

Description easy_lad 2025-04-24 09:44:56 UTC
Created attachment 180602 [details]
Toggle switches is in LTR not RTL

SUMMARY

The toggle switches follow the LTR styling instead of RTL. See https://rtlstyling.com/posts/rtl-styling/#toggle-switches

Any settings that have toggle switches, but I will reproduce with example where I noticed this issue. Also an image attached.

STEPS TO REPRODUCE
1. right click on the panel
2. choose Show Panel Configuration / أظهر ضبط اللوحة

OBSERVED RESULT

Toggle switches are not following RTL style

EXPECTED RESULT

Toggle switches should be following RTL style

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Comment 1 Nate Graham 2025-05-08 21:01:00 UTC
Can you attach a larger screenshot that shows the context? I'm not seeing this issue with `LANGUAGE=ar_AR plasmashell --replace` for the Audio Volume and Networks widgets.

Which exact toggle switches are affected?
Comment 2 easy_lad 2025-05-08 22:19:25 UTC
Created attachment 181092 [details]
I actually realized that the whole interface when configuring panel is in LTR, you can even see the labels are at the left and the drop-down menu. I will add another screenshot too.
Comment 3 easy_lad 2025-05-08 22:26:51 UTC
Created attachment 181093 [details]
When hovering over the panel while in panel configuration mode, you can see text is at the left.
Comment 4 Nate Graham 2025-05-08 23:52:17 UTC
I can reproduce that. It may be another case of Bug 503255.
Comment 5 Oliver Beard 2025-05-09 15:14:13 UTC
(In reply to Nate Graham from comment #4)
> I can reproduce that. It may be another case of Bug 503255.

Not so. It's not a Dialog, the whole thing is based around a ColumnLayout fed into a QML engine, so it absolutely needs to set LayoutMirroring itself.
Comment 6 Oliver Beard 2025-05-11 20:35:18 UTC
Git commit 6f417e4b5b34d445580f435c984efd0a29b0faab by Oliver Beard.
Committed on 11/05/2025 at 20:07.
Pushed by olib into branch 'master'.

PanelConfiguration: Fix missing RTL
Because this is used as the root item in QML, we need to set LayoutMirroring ourselves.

M  +3    -0    desktoppackage/contents/configuration/PanelConfiguration.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/6f417e4b5b34d445580f435c984efd0a29b0faab