feat(icon): a watermelon for every window

The recorder window and the viewer carry an icon of their own: a slice of
watermelon, drawn as komorebi-recorder/assets/watermelon.svg. `just icon`
(assets/generate.py, with resvg from the devShell) renders the PNG the windows
set and the ICO that Windows embeds. Until now eframe's default egui icon
showed.

macOS: eframe sets the PNG as the Dock icon while a window is open. The program
is a bare executable and not an app bundle, so Finder is unchanged.

Windows: eframe sets the same PNG as the window and taskbar icon. build.rs
compiles the ICO into both executables with embed-resource (rc.exe on Windows,
llvm-rc when cross-building from a Mac), and the installer shows it in Apps &
features through ARPPRODUCTICON. The taskbar, Explorer and the installer have
not been looked at on Windows: W4 and W5 in docs/dev/windows-checkpoints.md now
say what to check.

embed-resource adds seven crates to the lockfile and moves toml_datetime and
toml_parser up by a patch release.
This commit is contained in:
LGUG2Z committed 2026-10-27 22:22:56 -07:00
1 parent df4ab2d2a5
commit 8a203f0da7
19 files changed
+335 -17

No files matched your search

+5 -1
View File
@@ -58,7 +58,9 @@
|| (pkgs.lib.hasSuffix "/komorebi-recorder/src/guide.md" path)
|| (pkgs.lib.hasInfix "/komorebi-recorder/tests/fixtures/" path)
# the installer, which `tests/packaging.rs` checks
|| (pkgs.lib.hasInfix "/wix/" path);
|| (pkgs.lib.hasInfix "/wix/" path)
# the icon, which `src/icon.rs` embeds and `build.rs` compiles into the Windows executables
|| (pkgs.lib.hasInfix "/komorebi-recorder/assets/" path);
};
mkPackages =
@@ -299,6 +301,8 @@
pkgs.jq
pkgs.just
pkgs.ripgrep
# `just icon` renders the watermelon
pkgs.resvg
];
};