Bug 452436

Summary: Horizontal spaces between the edges of the Media Player applet and its contents are inconsistent
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Media Player widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2022-04-09 14:29:25 UTC
Created attachment 148071 [details]
screenshot

STEPS TO REPRODUCE
1. play a video without an embedded cover art with VLC player or another player controllable with Media Player applet
2. click on Media Player applet in the system tray
3. 

OBSERVED RESULT
as we can observe in the attached screenshot, the horizontal spaces between the borders of the applet and its contents are inconsistent. The space between the left edge and the contents is larger than the space between the right border and the contents.

EXPECTED RESULT
consistent space between the borders of the applet and its contents

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 1 Nate Graham 2022-04-10 16:21:03 UTC
I think this is the expected layout. The content area is divided in half vertically, with album art in the left pane, and the text in the right pane. In the case where there is no album art, we show a placeholder icon for the app itself instead. This icon is centered in its pane.

There isn't a way to have consistent margins with such as layout, as we would need to do one of the following things:
1. Stop centering thre placeholder app icon and move it all the way over to the left. This would look much worse.
2. Blow up the placeholder app icon to a huge size to make it match the horizontal size of the text This would also look much worse.
3. Make the text margins match the small size of the app icon. This would make the text unreadable.

We could change the layout completely to avoid this issue entirely, but that would be a big design change that would have to be carefully thought out to avoid introducing further issues. So I don't think there's anything we can do here, sorry.