From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- .../crashreporter/client/app/src/ui/crashreporter.png | Bin 2001 -> 1562 bytes .../crashreporter/client/app/src/ui/windows/window.rs | 9 +++++++++ 2 files changed, 9 insertions(+) (limited to 'toolkit/crashreporter/client/app/src') diff --git a/toolkit/crashreporter/client/app/src/ui/crashreporter.png b/toolkit/crashreporter/client/app/src/ui/crashreporter.png index 5e68bac17c..1ceb540ff0 100644 Binary files a/toolkit/crashreporter/client/app/src/ui/crashreporter.png and b/toolkit/crashreporter/client/app/src/ui/crashreporter.png differ diff --git a/toolkit/crashreporter/client/app/src/ui/windows/window.rs b/toolkit/crashreporter/client/app/src/ui/windows/window.rs index 7e5e8f3f2a..0188ca8216 100644 --- a/toolkit/crashreporter/client/app/src/ui/windows/window.rs +++ b/toolkit/crashreporter/client/app/src/ui/windows/window.rs @@ -84,6 +84,15 @@ pub trait CustomWindowClass: WindowClass { 0, win::SWP_NOMOVE | win::SWP_NOSIZE | win::SWP_NOZORDER | win::SWP_FRAMECHANGED, )); + + // For reasons that don't make much sense, icons scale poorly unless set with + // `WM_SETICON` (see bug 1891920). + let icon = W::icon(); + if icon != 0 { + // The return value doesn't indicate failures. + win::SendMessageW(hwnd, win::WM_SETICON, win::ICON_SMALL as _, icon); + win::SendMessageW(hwnd, win::WM_SETICON, win::ICON_BIG as _, icon); + } } let result = unsafe { W::get(hwnd).as_ref() } -- cgit v1.2.3