cosmic-applets/cosmic-applet-status-area/src
Rafael Kraut 63292ab74d fix(status-area): constrain menu icon-data to icon size
Menu items expose their icon as a themed `icon-name` or raw PNG `icon-data`. The named-icon branch renders at a fixed `.size(14)`, but the icon-data branch wrapped the pixmap in a bare `Image` with no size constraint, so it rendered at the PNG's native dimensions. Apps may send full-resolution pixmaps, which then render oversized in the menu.

Constrain icon-data to the same 14px box with ContentFit::Contain, matching how KDE (Qt small-icon size) and GNOME (St.Icon popup-menu-icon) render menu item icons.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-10 21:28:12 +02:00
..
components fix(status-area): constrain menu icon-data to icon size 2026-08-10 21:28:12 +02:00
subscriptions fix(status-area): forward SNI scroll events (#1431) 2026-07-02 18:02:40 +02:00
lib.rs status-area: Seperate daemon for status notifier daemon 2026-02-02 10:36:16 -08:00
main.rs chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
status_notifier_watcher.rs status-area: Seperate daemon for status notifier daemon 2026-02-02 10:36:16 -08:00
unique_names.rs fix(status-area): break from loop instead of unwrapping 2026-03-26 17:06:37 -04:00