From ebaffad37c4c0ddd995797d701d3bf6a3be2d3e8 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 27 Feb 2024 21:17:05 -0700 Subject: [PATCH] Add icons --- justfile | 8 +++++- res/com.system76.CosmicTerm.desktop | 2 +- .../128x128/apps/com.system76.CosmicTerm.svg | 16 ++++++++++++ .../16x16/apps/com.system76.CosmicTerm.svg | 16 ++++++++++++ .../24x24/apps/com.system76.CosmicTerm.svg | 16 ++++++++++++ .../256x256/apps/com.system76.CosmicTerm.svg | 26 +++++++++++++++++++ .../32x32/apps/com.system76.CosmicTerm.svg | 16 ++++++++++++ .../48x48/apps/com.system76.CosmicTerm.svg | 16 ++++++++++++ .../64x64/apps/com.system76.CosmicTerm.svg | 16 ++++++++++++ 9 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 res/icons/hicolor/128x128/apps/com.system76.CosmicTerm.svg create mode 100644 res/icons/hicolor/16x16/apps/com.system76.CosmicTerm.svg create mode 100644 res/icons/hicolor/24x24/apps/com.system76.CosmicTerm.svg create mode 100644 res/icons/hicolor/256x256/apps/com.system76.CosmicTerm.svg create mode 100644 res/icons/hicolor/32x32/apps/com.system76.CosmicTerm.svg create mode 100644 res/icons/hicolor/48x48/apps/com.system76.CosmicTerm.svg create mode 100644 res/icons/hicolor/64x64/apps/com.system76.CosmicTerm.svg diff --git a/justfile b/justfile index 23d5ad8..c4c39f4 100644 --- a/justfile +++ b/justfile @@ -15,6 +15,9 @@ desktop := APPID + '.desktop' desktop-src := 'res' / desktop desktop-dst := clean(rootdir / prefix) / 'share' / 'applications' / desktop +icons-src := 'res' / 'icons' / 'hicolor' +icons-dst := clean(rootdir / prefix) / 'share' / 'icons' / 'hicolor' + # Default recipe which runs `just build-release` default: build-release @@ -57,7 +60,10 @@ run *args: # Installs files install: install -Dm0755 {{bin-src}} {{bin-dst}} - install -Dm0755 {{desktop-src}} {{desktop-dst}} + install -Dm0644 {{desktop-src}} {{desktop-dst}} + for size in `ls {{icons-src}}`; do \ + install -Dm0644 "{{icons-src}}/$size/apps/{{APPID}}.svg" "{{icons-dst}}/$size/apps/{{APPID}}.svg"; \ + done # Uninstalls installed files uninstall: diff --git a/res/com.system76.CosmicTerm.desktop b/res/com.system76.CosmicTerm.desktop index 0bb457a..3946c35 100644 --- a/res/com.system76.CosmicTerm.desktop +++ b/res/com.system76.CosmicTerm.desktop @@ -5,6 +5,6 @@ Exec=cosmic-term Terminal=false Type=Application StartupNotify=true -Icon=utilities-terminal +Icon=com.system76.CosmicTerm Categories=COSMIC;System;TerminalEmulator; Keywords=Command;Shell;Terminal; diff --git a/res/icons/hicolor/128x128/apps/com.system76.CosmicTerm.svg b/res/icons/hicolor/128x128/apps/com.system76.CosmicTerm.svg new file mode 100644 index 0000000..4f43890 --- /dev/null +++ b/res/icons/hicolor/128x128/apps/com.system76.CosmicTerm.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/res/icons/hicolor/16x16/apps/com.system76.CosmicTerm.svg b/res/icons/hicolor/16x16/apps/com.system76.CosmicTerm.svg new file mode 100644 index 0000000..777b106 --- /dev/null +++ b/res/icons/hicolor/16x16/apps/com.system76.CosmicTerm.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/res/icons/hicolor/24x24/apps/com.system76.CosmicTerm.svg b/res/icons/hicolor/24x24/apps/com.system76.CosmicTerm.svg new file mode 100644 index 0000000..d07e190 --- /dev/null +++ b/res/icons/hicolor/24x24/apps/com.system76.CosmicTerm.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/res/icons/hicolor/256x256/apps/com.system76.CosmicTerm.svg b/res/icons/hicolor/256x256/apps/com.system76.CosmicTerm.svg new file mode 100644 index 0000000..e77fc3f --- /dev/null +++ b/res/icons/hicolor/256x256/apps/com.system76.CosmicTerm.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/icons/hicolor/32x32/apps/com.system76.CosmicTerm.svg b/res/icons/hicolor/32x32/apps/com.system76.CosmicTerm.svg new file mode 100644 index 0000000..c9f05c8 --- /dev/null +++ b/res/icons/hicolor/32x32/apps/com.system76.CosmicTerm.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/res/icons/hicolor/48x48/apps/com.system76.CosmicTerm.svg b/res/icons/hicolor/48x48/apps/com.system76.CosmicTerm.svg new file mode 100644 index 0000000..30f41d7 --- /dev/null +++ b/res/icons/hicolor/48x48/apps/com.system76.CosmicTerm.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/res/icons/hicolor/64x64/apps/com.system76.CosmicTerm.svg b/res/icons/hicolor/64x64/apps/com.system76.CosmicTerm.svg new file mode 100644 index 0000000..97cdb8b --- /dev/null +++ b/res/icons/hicolor/64x64/apps/com.system76.CosmicTerm.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + +