Created attachment 180590 [details] It is displayed in LTR, not in RTL SUMMARY Overlay when scroll on hover over icon for RTL languages, it is in wrong direction (LTR), image attached is for sound volume which even the slider follows LTR way, but is also issue with screen brightness etc and their logo placement too for example the language, keyboard icon should be on the right. STEPS TO REPRODUCE 1. hover over icon 2. scroll mouse wheel 3. see the overlay that shows up OBSERVED RESULT It is in LTR EXPECTED RESULT displayed in RTL 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
Created attachment 180591 [details] another example, but with brightness
Can reproduce with `LANGUAGE=ar_AR plasmashell --replace`
It looks like this is a generic issue affecting PlasmaCore.Dialog. Woatever you give it as a its mainItem, that thing won't respect layout mirroring, even if I manually set LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft LayoutMirroring.childrenInherit: true I can see the same issue with Task Manager tooltips, which have complex layouts inside a PlasmaCore.Dialog. Moving to libplasma.
Do we know if PlasmaWindow/PopupPlasmaWindow (which are the intended replacements for Dialog) also have this problem?
The reason why fixes did not previously affect the OSD was because they were applied to the fallback rather than the actual, which have now been unified in plasma-workspace. I've opened an MR to introduce LayoutMirroring to the OSD therefore, to effectively resolve the problem for now, deferring any internal changes we want to make: It may not be appropriate for org.kde.plasma.core's Dialog to automatically apply LayoutMirroring itself, as it appears to generally not be intended for use as a root QML item. This would not be the case for PlasmaWindow/PopupPlasmaWindow which the OSD should probably use instead.
Git commit 8845c001e2de0ef1c97daf2bf7f2ca1e4efd1f34 by Oliver Beard. Committed on 11/05/2025 at 20:07. Pushed by olib into branch 'master'. shell/Osd: Fix missing RTL PlasmaCore.Dialog does not set LayoutMirroring for us, so we need to do it ourselves. M +3 -0 shell/qml/Osd.qml https://invent.kde.org/plasma/plasma-workspace/-/commit/8845c001e2de0ef1c97daf2bf7f2ca1e4efd1f34