cosmic-applets/cosmic-applet-status-area
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
..
data i18n: translate desktop entries with xdgen (#1328) 2026-03-02 11:33:29 -07:00
src fix(status-area): constrain menu icon-data to icon size 2026-08-10 21:28:12 +02:00
Cargo.toml chore: bump versions to 1.0.15 2026-05-29 17:15:35 +02:00