fix(icons): give the dev Dock its own mac-grid png
Linux uses apple-touch-icon.png as the window icon and Nix requires it to match the full-bleed launcher icon, so keep it full-bleed and point the dev-only app.dock.setIcon at assets/icon-mac.png instead.
This commit is contained in:
BIN
apps/desktop/assets/icon-mac.png
Normal file
BIN
apps/desktop/assets/icon-mac.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
@@ -14720,7 +14720,8 @@ function createWindow() {
|
||||
|
||||
// Packaged builds keep the bundle icon so macOS can style it (#73195).
|
||||
if (icon && shouldOverrideDockIcon({ platform: process.platform, isPackaged: app.isPackaged })) {
|
||||
app.dock?.setIcon(icon)
|
||||
// The window icon is full-bleed for Linux; the Dock wants the mac grid.
|
||||
app.dock?.setIcon(resolveAppIcon([path.join(APP_ROOT, 'assets', 'icon-mac.png')]) ?? icon)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 66 KiB |
@@ -175,8 +175,9 @@ TARGETS: list[tuple[str, str, object]] = [
|
||||
("apps/desktop/assets/appx/StoreLogo-dark.png", "png_dark", 50),
|
||||
("apps/desktop/assets/appx/Square44x44Logo-dark.png", "png_dark", 44),
|
||||
("apps/desktop/assets/appx/Square150x150Logo-dark.png", "png_dark", 150),
|
||||
# The dev-run Dock icon (app.dock.setIcon), so it sits on the mac grid too.
|
||||
("apps/desktop/public/apple-touch-icon.png", "png_mac", 1024),
|
||||
("apps/desktop/public/apple-touch-icon.png", "png", 1024),
|
||||
# The dev-run Dock icon (app.dock.setIcon): same mac grid as the icns.
|
||||
("apps/desktop/assets/icon-mac.png", "png_mac", 1024),
|
||||
("apps/desktop/public/nous-girl.png", "girl_light", 256),
|
||||
("apps/desktop/public/nous-girl-dark.png", "girl_dark", 256),
|
||||
("apps/bootstrap-installer/src-tauri/icons/32x32.png", "png", 32),
|
||||
|
||||
Reference in New Issue
Block a user