app: ship the Oak icon on every platform surface

- Runtime window icon: X11 takes the embedded 512px PNG up front
  (_NET_WM_ICON), Wayland resolves it from oak.desktop via the app id,
  Windows reads it from the exe's icon resource.
- assets/appicon: 512px PNG + 7-size ICO rasterized from Oak_Icon.svg.
- Windows: oak.rc (ICON resource ID 1, also the Explorer icon) compiled
  by build.rs through embed-resource.
- Linux packaging (deb/rpm/PKGBUILD/oak.spec): install Oak_Icon.svg
  into the hicolor scalable theme alongside the existing 512px PNG.
- macOS: no change needed - cargo packager already builds the .icns
  from the CD-generated icons/icon.png (same source art).
This commit is contained in:
2026-09-10 16:54:51 +08:00
parent 012659bf57
commit 71e41d2d82
11 changed files with 39 additions and 2 deletions
Generated
+1
View File
@@ -4723,6 +4723,7 @@ dependencies = [
name = "oak-app"
version = "0.5.0"
dependencies = [
"embed-resource",
"gpui",
"gpui_elements",
"gpui_platform",