From: Scott Worley Date: Wed, 1 Oct 2025 03:11:20 +0000 (-0700) Subject: Set application icon X-Git-Url: http://git.scottworley.com/srec/commitdiff_plain/3b5f6e087f515559fdcb2cca5008a7e2315e90f3?ds=sidebyside Set application icon --- diff --git a/default.nix b/default.nix index 7e5736f..6fef437 100644 --- a/default.nix +++ b/default.nix @@ -18,7 +18,12 @@ pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage, ffmpeg-full postInstall = '' wrapProgram "$out/bin/srec" --prefix PATH : ${ffmpeg-full}/bin - cp -r $desktopItem/share $out + + install -D ${./srec48.png} $out/share/icons/hicolor/48x48/apps/srec.png + install -D ${./srec.png} $out/share/icons/hicolor/256x256/apps/srec.png + install -D ${./srec.svg} $out/share/icons/hicolor/scalable/apps/srec.svg + + cp -r $desktopItem/share/* $out/share ''; desktopItem = makeDesktopItem { diff --git a/srec.dia b/srec.dia index a34f970..5e13d50 100644 Binary files a/srec.dia and b/srec.dia differ diff --git a/srec.png b/srec.png index e8d8fe4..19955fe 100644 Binary files a/srec.png and b/srec.png differ diff --git a/srec.py b/srec.py index 4abe581..1112edd 100644 --- a/srec.py +++ b/srec.py @@ -78,6 +78,8 @@ def make_button(label: str, action: Callable[[ def on_activate(app: Gtk.Application) -> None: win = Gtk.ApplicationWindow(application=app) win.set_title('SRec') + win.set_icon_name('srec') + stack = Gtk.Stack() nr_box = Gtk.Box() diff --git a/srec.svg b/srec.svg new file mode 100644 index 0000000..7536f46 --- /dev/null +++ b/srec.svg @@ -0,0 +1,60 @@ + + + + + + + diff --git a/srec48.png b/srec48.png new file mode 100644 index 0000000..85c60ea Binary files /dev/null and b/srec48.png differ