BlueGit

ict rusty-teams

fix(notify): tray badge icon size as u32 on Windows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-17 · 6 weeks ago

Hash
9a56d0eac048a63b6c34354ff15d3c258ba25b63
Parent
a765aeee
1 file changed +1 −1
crates/app-base/src/notify/platform/windows_impl.rs +1 −1
@@ -491,7 +491,7 @@ pub fn set_badge(handle: NativeHandle, badge: Option<&Badge>) {
491 491 }
492 492
493 493 unsafe fn icon_from_badge(badge: &Badge) -> Option<HICON> {
494 unsafe { icon_from_bgra(&render_badge(badge), BADGE_SIZE) }
494 unsafe { icon_from_bgra(&render_badge(badge), BADGE_SIZE as u32) }
495 495 }
496 496
497 497 unsafe fn icon_from_bgra(pixels: &[u8], size: u32) -> Option<HICON> {
@@ -491,7 +491,7 @@ pub fn set_badge(handle: NativeHandle, badge: Option<&Badge>) {
491}
491}
492
492
493unsafe fn icon_from_badge(badge: &Badge) -> Option<HICON> {
493unsafe fn icon_from_badge(badge: &Badge) -> Option<HICON> {
494 unsafe { icon_from_bgra(&render_badge(badge), BADGE_SIZE) }
494 unsafe { icon_from_bgra(&render_badge(badge), BADGE_SIZE as u32) }
495}
495}
496
496
497unsafe fn icon_from_bgra(pixels: &[u8], size: u32) -> Option<HICON> {
497unsafe fn icon_from_bgra(pixels: &[u8], size: u32) -> Option<HICON> {