fix(desktop): make the Windows app icon match native icon size
The shipped artwork bakes in the macOS-style ~10% transparent margin (content covered only ~80% of the canvas), so the taskbar/titlebar icon rendered visibly smaller than neighboring Windows apps, which draw full-bleed. - Regenerate assets/icon.ico full-bleed (~95% coverage) from the same art, with the standard 16-256px frames. This feeds both the exe stamp (set-exe-identity via rcedit) and the installer. - On Windows, resolve the BrowserWindow icon from the full-bleed ico (resources/icon.ico, shipped via extraResources) before falling back to the padded apple-touch PNG. macOS is untouched: the dock icon and icon.icns keep the padded art, which is correct there.
This commit is contained in:
parent
64dd865912
commit
80c86c4949
Binary file not shown.
|
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 85 KiB |
|
|
@ -681,7 +681,15 @@ const WINDOW_BUTTON_POSITION = {
|
|||
// (pure + unit-testable); computeNativeOverlayWidth() applies it per platform.
|
||||
// It's only the pre-layout fallback — the renderer measures the exact overlay
|
||||
// width live via the Window Controls Overlay API.
|
||||
// The apple-touch PNG bakes in the macOS-style ~10% margin, which is correct
|
||||
// for the dock but renders visibly smaller than neighboring taskbar icons on
|
||||
// Windows, where icons are full-bleed. Windows prefers the full-bleed
|
||||
// assets/icon.ico (shipped to resources/ via extraResources) and only falls
|
||||
// back to the padded PNG if the ico is missing.
|
||||
const APP_ICON_PATHS = [
|
||||
...(IS_WINDOWS
|
||||
? [path.join(process.resourcesPath ?? '', 'icon.ico'), path.join(APP_ROOT, 'assets', 'icon.ico')]
|
||||
: []),
|
||||
path.join(APP_ROOT, 'public', 'apple-touch-icon.png'),
|
||||
path.join(APP_ROOT, 'dist', 'apple-touch-icon.png'),
|
||||
path.join(unpackedPathFor(APP_ROOT), 'dist', 'apple-touch-icon.png')
|
||||
|
|
|
|||
Loading…
Reference in New Issue