Bug 466630

Summary: Need 16px version of system-switch-user icon to improve display in menus
Product: [Plasma] Breeze Reporter: Alexander Wilms <f.alexander.wilms>
Component: IconsAssignee: visual-bugs-null
Status: RESOLVED FIXED    
Severity: wishlist CC: kainz.a, m, nate
Priority: NOR    
Version First Reported In: 5.27.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=466678
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A screenshot showing the symbolic icons used in Kickoff
16px version shown for me
Cuttlefish screenshot of system-switch-user icon at 100% scale on Wayland
Cuttlefish screenshot of system-switch-user icon at 200% scale on Wayland

Description Alexander Wilms 2023-03-01 01:02:47 UTC
Created attachment 156843 [details]
A screenshot showing the symbolic icons used in Kickoff

SUMMARY
The "Switch user" icon is too detailed/small at high resolutions to be easily recognizable compared to the other symbolic icons in Kickoff.

STEPS TO REPRODUCE
1. Use high resolution monitor (e.g. 1440p)
2. Open Kickoff
3. Open the session menu

OBSERVED RESULT
The "switch user" icon is very detailed compared to the "lock screen" and "log out" icons in the menu or the slightly bigger icons for standby, hibernation etc.

EXPECTED RESULT
A slightly less detailed icon that is as easily recognizable as the others.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230227
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-03-01 01:24:45 UTC
What scale factor (if any) are you using? Or have you changed the font DPI?
Comment 2 Alexander Wilms 2023-03-01 11:20:38 UTC
Display and Monitor > Display Configuration > Global Scale is set to 100%
Appearance > Fonts > Force font DPI is disabled

I took a look at the system-switch-user icons with Inkscape, and it seems the menu uses the 22x22 px version rendered at 16x16 px

I think the icons just needs to be available in this additional resolution, possibly simplified to be recognizable at that size.

Or does it look different on your machine?
Comment 3 Nate Graham 2023-03-01 15:40:12 UTC
Created attachment 156879 [details]
16px version shown for me

Yes, I see the 16px version, which is the expected size for a menu item. See attached screenshot. The question is why you're seeing the 22px version scaled down. No wonder it's weird and blurry.
Comment 4 Nate Graham 2023-03-01 15:42:16 UTC
Next question: Do you see scaled-down blurry 22px icons in other menus too? In Plasma, and even in apps?
Comment 5 Alexander Wilms 2023-03-01 16:27:56 UTC
I don't think there is a 16px version of the system-switch-user icon. I can't find it in /usr/share/icons/breeze and not in https://invent.kde.org/frameworks/breeze-icons/-/tree/master/icons/actions/16 either

Nate and I determined that the difference between our screenshots was due to the different screen scale. Attached are two cuttlefish screenshots at 100% and 200% scale. It seems like at 200% scale, the 32 px icon is scaled and used as the 16 px version.

Nate theorized that KIconLoader may be picking the wrong icon size.

Regardless, the icon seems to be pretty hard to read at that size, so I think an actual 16px version should be added.
Comment 6 Alexander Wilms 2023-03-01 16:28:42 UTC
Created attachment 156887 [details]
Cuttlefish screenshot of system-switch-user icon at 100% scale on Wayland
Comment 7 Alexander Wilms 2023-03-01 16:28:57 UTC
Created attachment 156888 [details]
Cuttlefish screenshot of system-switch-user icon at 200% scale on Wayland
Comment 8 Nate Graham 2023-03-01 18:27:06 UTC
Ok, so we have two issues here:
1. The lack of a 16px version of that icon causes larger versions to get scaled down, where they don't look as good
2. With 200% scaling, the 16px version of the icon is rendered from the 32px version, while with 100% scaling, the 16px version is rendered from the 22px version. Scaling down the 32px version *might* be better since it's a simple 50% downscale, but regardless, the same size version should be used as the base no matter what your scale is set to.

Let's use this bug report for #1. Can you submit a new bug report to frameworks-kiconthemes about issue #2?

Thanks a lot!
Comment 9 Alexander Wilms 2023-08-17 18:40:39 UTC
Git commit 2eb68fda72ffe9e0a85809c88fb0195302769de7 by Nate Graham, on behalf of Alexander Wilms.
Committed on 17/08/2023 at 16:46.
Pushed by ngraham into branch 'master'.

Add actions/16/system-switch-user

Based on actions/22/system-switch-user. Also add -symbolic symlink for it.

A  +1    -0    icons/actions/16/system-switch-user-symbolic.svg
A  +13    -0   icons/actions/16/system-switch-user.svg

https://invent.kde.org/frameworks/breeze-icons/-/commit/2eb68fda72ffe9e0a85809c88fb0195302769de7