Bug 493042 - Audio volume widget only shows large icon on a vertical thick panel
Summary: Audio volume widget only shows large icon on a vertical thick panel
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-09-13 02:39 UTC by isaacmcnatty
Modified: 2024-09-16 07:43 UTC (History)
2 users (show)

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


Attachments
Large icon on panel instead of menu (109.22 KB, image/png)
2024-09-13 02:39 UTC, isaacmcnatty
Details
how the widget was on plasma 5 (58.62 KB, image/png)
2024-09-13 07:19 UTC, isaacmcnatty
Details
how the widget was on plasma 6 (356.14 KB, image/png)
2024-09-13 07:20 UTC, isaacmcnatty
Details

Note You need to log in before you can comment on or make changes to this bug.
Description isaacmcnatty 2024-09-13 02:39:43 UTC
Created attachment 173608 [details]
Large icon on panel instead of menu

SUMMARY

When adding a audio volume widget onto a thick plasma panel it shows a large icon instead of the audio volume widget menu  


STEPS TO REPRODUCE
1. Have a vertical thick panel (e.g 300px panel width)
2. Add a audio volume widget directly to the panel

or
 
1. Have a thick panel (e.g 300px panel width)
2. Drag a audio volume widget from the desktop onto the thick panel 
3. Log out/Log in

OBSERVED RESULT
large icon instead of the widget menu 

EXPECTED RESULT
showing the widget menu on the panel


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: CachyOS Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version:  6.5.0
Qt Version: 6.7.2
Comment 1 isaacmcnatty 2024-09-13 02:41:18 UTC
(In reply to isaacmcnatty from comment #0)
> Created attachment 173608 [details]
> Large icon on panel instead of menu
> 
> SUMMARY
> 
> When adding a audio volume widget onto a vertical thick plasma panel it shows a large
> icon instead of the audio volume widget menu  
> 
> 
> STEPS TO REPRODUCE
> 1. Have a vertical thick panel (e.g 300px panel width)
> 2. Add a audio volume widget directly to the panel
> 
> or
>  
> 1. Have a thick panel (e.g 300px panel width)
> 2. Drag a audio volume widget from the desktop onto the thick panel 
> 3. Log out/Log in
> 
> OBSERVED RESULT
> large icon instead of the widget menu 
> 
> EXPECTED RESULT
> showing the widget menu on the panel
> 
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: CachyOS Linux 
> KDE Plasma Version: 6.1.5
> KDE Frameworks Version:  6.5.0
> Qt Version: 6.7.2
Comment 2 Justin Zobel 2024-09-13 06:53:44 UTC
I cannot replicate this on the latest from git master. When you click on the volume icon in the new large panel does it show the volume menu?
Comment 3 isaacmcnatty 2024-09-13 07:19:16 UTC
Created attachment 173609 [details]
how the widget was on plasma 5
Comment 4 isaacmcnatty 2024-09-13 07:20:22 UTC
Created attachment 173610 [details]
how the widget was on plasma 6
Comment 5 isaacmcnatty 2024-09-13 07:23:07 UTC
i didnt mean when you click on the panel icon 
back in plasma 5 when the vertical panel was thick enough e.g 300px wide it would change the icon into the menu 
ive added 2 pictures to show it better
Comment 6 Justin Zobel 2024-09-13 07:36:55 UTC
Ah yes now I see. Can confirm on git master, only icon is shown, not the applet with functionality shown.

Screenshots always help so much, thank you.
Comment 7 Bug Janitor Service 2024-09-14 22:04:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-pa/-/merge_requests/283
Comment 8 cwo 2024-09-16 07:42:26 UTC
Git commit 7878c4566048f14783e1f4d62a7cc218386f7de2 by Christoph Wolk.
Committed on 16/09/2024 at 07:38.
Pushed by cwo into branch 'master'.

applet: directly set switching sizes

The volume applet currently reads the minimum size for switching to full
representation from the Layout. This does not work in a panel though,
because the applet is not in a layout, and the fullRepresentation is not
loaded so the Layout properties set there can't be used for this either.

This change sets the switching values explicitly (in multiples of
gridUnit) and has the fullRepresentation set the Layout properties based
on those, rather than the other way around. This is how similar applets
do it (e.g. webbrowser or mediacontroller), and restores Plasma 5
functionality.

M  +4    -4    applet/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-pa/-/commit/7878c4566048f14783e1f4d62a7cc218386f7de2
Comment 9 cwo 2024-09-16 07:43:11 UTC
Git commit 1138cefa411f18eee0c433b4c8a13833aa1423dd by Christoph Wolk.
Committed on 16/09/2024 at 07:43.
Pushed by cwo into branch 'Plasma/6.2'.

applet: directly set switching sizes

The volume applet currently reads the minimum size for switching to full
representation from the Layout. This does not work in a panel though,
because the applet is not in a layout, and the fullRepresentation is not
loaded so the Layout properties set there can't be used for this either.

This change sets the switching values explicitly (in multiples of
gridUnit) and has the fullRepresentation set the Layout properties based
on those, rather than the other way around. This is how similar applets
do it (e.g. webbrowser or mediacontroller), and restores Plasma 5
functionality.


(cherry picked from commit 7878c4566048f14783e1f4d62a7cc218386f7de2)

Co-authored-by: Christoph Wolk <christoph.wolk@gmx.de>

M  +4    -4    applet/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-pa/-/commit/1138cefa411f18eee0c433b4c8a13833aa1423dd