From c4f550f4d18ae1ea06015b205cddd6821ed766fe Mon Sep 17 00:00:00 2001 From: Michael Aguiar Date: Wed, 25 Nov 2026 22:44:18 -0700 Subject: [PATCH 1/2] Ship the 16 and 24 px icons as PNGs (0.1.1) The aliasOS Apps menu keeps the first SVG it finds for an icon name, and finds 16x16/ before scalable/, so it stretched the 16 px pixel-grid drawing to fill its tile. As PNGs, the small sizes are only used where a 16 or 24 px icon is asked for, and the menu takes the scalable mark. They're the same pixel-grid drawings, rendered at their own size: four colours and transparency, no anti-aliasing. install.sh installs them as .png and, over a 0.1.0 install, removes that version's SVGs at those sizes; uninstall removes both. Version 0.1.1. --- Cargo.lock | 2 +- Cargo.toml | 2 +- install.sh | 16 +++++++++++----- packaging/icons/com.aliasproject.calc-16.png | Bin 0 -> 209 bytes packaging/icons/com.aliasproject.calc-16.svg | 2 -- packaging/icons/com.aliasproject.calc-24.png | Bin 0 -> 268 bytes packaging/icons/com.aliasproject.calc-24.svg | 2 -- 7 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 packaging/icons/com.aliasproject.calc-16.png delete mode 100644 packaging/icons/com.aliasproject.calc-16.svg create mode 100644 packaging/icons/com.aliasproject.calc-24.png delete mode 100644 packaging/icons/com.aliasproject.calc-24.svg diff --git a/Cargo.lock b/Cargo.lock index db80c34..5e7f048 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,7 +55,7 @@ dependencies = [ [[package]] name = "alias-calc" -version = "0.1.0" +version = "0.1.1" dependencies = [ "fontdue", "rust_decimal", diff --git a/Cargo.toml b/Cargo.toml index 24c3fae..596e76b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alias-calc" -version = "0.1.0" +version = "0.1.1" edition = "2024" license = "LicenseRef-Proprietary" description = "A tiny, instant calculator for aliasOS" diff --git a/install.sh b/install.sh index 57b2246..5126d2b 100755 --- a/install.sh +++ b/install.sh @@ -75,8 +75,9 @@ put() { uninstall() { rm -f "$bindir/alias-calc" "$libdir/$library" "$appdir/$app.desktop" \ - "$icondir/scalable/apps/$app.svg" "$icondir/16x16/apps/$app.svg" \ - "$icondir/24x24/apps/$app.svg" + "$icondir/scalable/apps/$app.svg" "$icondir/16x16/apps/$app.png" \ + "$icondir/24x24/apps/$app.png" \ + "$icondir/16x16/apps/$app.svg" "$icondir/24x24/apps/$app.svg" # 0.1.0's rmdir "$libdir" 2>/dev/null || true # And any temporary file an install that was killed left. for left in "$bindir"/.alias-calc.tmp.?????? "$libdir"/.alias-calc.tmp.?????? \ @@ -131,8 +132,13 @@ install_() { rm -f "$entry" # The mark at any size, and the pixel-grid files where it's drawn small. - for target in scalable:$app.svg 16x16:$app-16.svg 24x24:$app-24.svg; do - put "$here/packaging/icons/${target#*:}" "$icondir/${target%%:*}/apps/$app.svg" 644 + # Those two are PNGs: launchers that index icons by name alone (aliasOS's + # shell keeps the first SVG it finds) would otherwise stretch the 16 px + # file to fill a 48 px tile. An install over 0.1.0 drops its SVGs. + put "$here/packaging/icons/$app.svg" "$icondir/scalable/apps/$app.svg" 644 + for size in 16 24; do + put "$here/packaging/icons/$app-$size.png" "$icondir/${size}x$size/apps/$app.png" 644 + rm -f "$icondir/${size}x$size/apps/$app.svg" done refresh @@ -140,7 +146,7 @@ install_() { say " $bindir/alias-calc" say " $libdir/$library (screen readers)" say " $appdir/$app.desktop (\"Calculator\" in the launcher)" - say " $icondir/{scalable,16x16,24x24}/apps/$app.svg" + say " $icondir/scalable/apps/$app.svg, {16x16,24x24}/apps/$app.png" } case "${1:-install}" in diff --git a/packaging/icons/com.aliasproject.calc-16.png b/packaging/icons/com.aliasproject.calc-16.png new file mode 100644 index 0000000000000000000000000000000000000000..9a380bd3dd3ce7462b8732ee619b29892b786b54 GIT binary patch literal 209 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt^_o-U3d z7QM*{3j_>|3=9lbtjzqYzT`vNev@Ts@9*~b9J#e5?uW=~i;HXzj96APK0h~C;g$do zbHc2Nyq4wfSY#GUH<=2YpKEuaWO8a;Z_Bos6SI*k~jB^I21XnNqp z38rj`2VCN7^cp0cJdBx{IXxw%4@hz^Vd&yrAi=;Ol5C|{_lnm7=pqJBS3j3^P6 - diff --git a/packaging/icons/com.aliasproject.calc-24.png b/packaging/icons/com.aliasproject.calc-24.png new file mode 100644 index 0000000000000000000000000000000000000000..ee2092804da2a36ba3b4379d86a98afa87c15b66 GIT binary patch literal 268 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjY)RhkE)4%caKYZ?lYt@!JzX3_ zJUWvT78oY97+$%u<=^C0KhyS` - From 7b9a3a51ae8a5b28e6b41ebd62f979ffdf0d5e4b Mon Sep 17 00:00:00 2001 From: Michael Aguiar Date: Wed, 25 Nov 2026 22:46:05 -0700 Subject: [PATCH 2/2] Keep the 16 and 24 px drawings as sources for their PNGs The pixel-grid SVGs are what the PNGs were rendered from (0 pixels differ). Kept in packaging/icons/src, not installed, so a change to the mark is an edit, not a redraw. --- packaging/icons/src/com.aliasproject.calc-16.svg | 3 +++ packaging/icons/src/com.aliasproject.calc-24.svg | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 packaging/icons/src/com.aliasproject.calc-16.svg create mode 100644 packaging/icons/src/com.aliasproject.calc-24.svg diff --git a/packaging/icons/src/com.aliasproject.calc-16.svg b/packaging/icons/src/com.aliasproject.calc-16.svg new file mode 100644 index 0000000..07d0e70 --- /dev/null +++ b/packaging/icons/src/com.aliasproject.calc-16.svg @@ -0,0 +1,3 @@ + + diff --git a/packaging/icons/src/com.aliasproject.calc-24.svg b/packaging/icons/src/com.aliasproject.calc-24.svg new file mode 100644 index 0000000..069685c --- /dev/null +++ b/packaging/icons/src/com.aliasproject.calc-24.svg @@ -0,0 +1,3 @@ + +