Bug 506632 - Panel configuration dialog has some problems with vertical panels in RTL mode
Summary: Panel configuration dialog has some problems with vertical panels in RTL mode
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: 6.4.80
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2025-07-05 12:22 UTC by Nate Graham
Modified: 2025-09-25 23:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.5.0
Sentry Crash Report:


Attachments
RTL panel config dialog (303.54 KB, image/png)
2025-07-05 12:22 UTC, Nate Graham
Details
Panel config labels in RTL (48.81 KB, image/jpeg)
2025-07-10 00:38 UTC, TraceyC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-07-05 12:22:10 UTC
Created attachment 182975 [details]
RTL panel config dialog

STEPS TO REPRODUCE
1. Have a vertical panel on the left side of the screen
2. Restart plasmashell in reversed or RTL mode, e.g. with `LANGUAGE=he_HE plasmashell --replace`
3. Right click on the left side vertical panel
4. Show Panel configuration (the bottom-most menu item)


OBSERVED RESULT
The panel configuration dialog mostly look good in RTL mode, but the previews show the panel on the right side of the screen, not the left! Also, the mock widget in the floating widgets preview has escaped from the frame.

See attached screenshot for details.


EXPECTED RESULT
Previews show the actual panel position, and floating widgets preview is within the frame.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 16 GiB of RAM (14.9 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics
Comment 1 TraceyC 2025-07-10 00:37:22 UTC
In git-master, the problems reported are fixed, but there's a slightly different problem
The text for "Panel Width" and "Focus shortcut" are to the left of the inputs, rather than to the right (which is a regression)
Comment 2 TraceyC 2025-07-10 00:38:28 UTC
Created attachment 183113 [details]
Panel config labels in RTL
Comment 3 Niccolò Venerandi 2025-09-22 09:14:39 UTC
I can't seem to reproduce on master, the labels are correctly positioned to the right of the options. Can you still reproduce in on latest build?
Comment 4 Niccolò Venerandi 2025-09-22 09:19:02 UTC
However, I do still reproduce Nate's original bug report… I'm investigating that one
Comment 5 Bug Janitor Service 2025-09-22 09:30:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3196
Comment 6 Bug Janitor Service 2025-09-22 11:23:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3197
Comment 7 Niccolò Venerandi 2025-09-23 13:13:18 UTC
Git commit 5c4a62ba1fcfb7ed5bc8dac9e21859c384c7455b by Niccolò Venerandi.
Committed on 23/09/2025 at 12:41.
Pushed by niccolove into branch 'master'.

Avoid layout mirroring in panel settings preview graphics

The panel settings previews use Layout to position the
panel object within the graphic; this meant that they
would be mirrored in rtl languages, which would no longer
reflect the actual position of the panel. This commits
turns off layout mirroring for these previews.

M  +8    -0    desktoppackage/contents/configuration/panelconfiguration/PanelRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/5c4a62ba1fcfb7ed5bc8dac9e21859c384c7455b
Comment 8 Niccolò Venerandi 2025-09-23 14:29:30 UTC
Git commit 3d804ce6da963803294aed48aebf93755bea728b by Niccolò Venerandi.
Committed on 23/09/2025 at 14:29.
Pushed by niccolove into branch 'Plasma/6.5'.

Avoid layout mirroring in panel settings preview graphics

The panel settings previews use Layout to position the
panel object within the graphic; this meant that they
would be mirrored in rtl languages, which would no longer
reflect the actual position of the panel. This commits
turns off layout mirroring for these previews.


(cherry picked from commit 5c4a62ba1fcfb7ed5bc8dac9e21859c384c7455b)

Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com>

M  +8    -0    desktoppackage/contents/configuration/panelconfiguration/PanelRepresentation.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/3d804ce6da963803294aed48aebf93755bea728b