Skip to content

ALI-2154: Ship the 16 and 24 px icons as PNGs (0.1.1) - #14

Merged
michaelaguiar merged 2 commits into
mainfrom
aliasbot/alias-calc-png-small-icons
Nov 26, 2026
Merged

michaelaguiar merged 2 commits into
mainfrom
aliasbot/alias-calc-png-small-icons

Conversation

@michaelaguiar

Copy link
Copy Markdown
Member

In 0.1.0, the aliasOS Apps menu shows Alias Calc's 16 px icon stretched to fill its tile. The menu keeps the first SVG it finds for each icon name, and find lists 16x16/ before scalable/. ALI-2153 fixes the menu itself. This PR fixes it from Alias Calc's side now.

  • Icons: the 16 and 24 px icons are PNGs instead of SVGs. They're the same pixel-grid drawings, rendered at their own size: four colours plus transparency, with no anti-aliasing. The scalable icon is unchanged.
  • install.sh: installs them as hicolor/{16x16,24x24}/apps/com.aliasproject.calc.png. Installed over 0.1.0, it removes that version's .svg files at those sizes. uninstall removes both kinds.
  • Version: 0.1.1.

Check

  • cargo fmt --check, clippy -D warnings and cargo test --workspace (98 + 3) pass. alias-calc --version prints alias-calc 0.1.1.
  • I staged an install over a 0.1.0 layout, with its two sized SVGs present. It left exactly 6 files: the binary, the library, the desktop entry, the scalable SVG and the two PNGs. uninstall left 0.
  • With these files, the menu's icon scan (iconIndexScanCommand() in aliasOS) finds only one SVG named com.aliasproject.calc, the scalable one.

After the merge

  1. Create the signed tag v0.1.1 on the merge commit and push it.
  2. In aliasos-pkgs, set pkgver=0.1.1 and _commit to that commit in the alias-calc PKGBUILD.
  3. Release with bin/repo release --package alias-calc.

Linear: ALI-2154

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.
@linear-code

linear-code Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
ALI-2154 Ship the 16 and 24 px icons as PNGs, so the Apps menu shows the full icon (0.1.1)

In 0.1.0, the aliasOS Apps menu shows Alias Calc's 16 px pixel-grid icon stretched to fill its tile. The menu keeps the first SVG it finds for each icon name, and 16x16/ comes before scalable/. The aliasOS fix is tracked separately. This ticket is the Alias Calc side, so the menu shows the right icon now.

Done when

  • The 16 and 24 px icons are PNGs, drawn on the same pixel grid as before.
  • install.sh installs them as hicolor/{16x16,24x24}/apps/com.aliasproject.calc.png. Installing over 0.1.0 removes 0.1.0's SVGs at those sizes, and uninstall removes both kinds.
  • Alias Calc is released as 0.1.1: a signed tag, the PKGBUILD bumped in aliasos-pkgs, and a release to [aliasos-private].
  • The Apps menu shows the full scalable icon.

Review in Linear

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.
@michaelaguiar

Copy link
Copy Markdown
Member Author

Review round 1 ran code-review in full and found no P1 or P2 problems.

Confirmed

  • With these files, the menu's scan (AppLibrary.qml) finds only the scalable SVG for com.aliasproject.calc.
  • The PNGs match native-size renders of 0.1.0's pixel-grid SVGs, with 0 pixels different. They contain only the three palette colours plus transparency.
  • A staged install over a 0.1.0 layout removes the old sized SVGs and leaves 6 files. Uninstall leaves 0.
  • CI's file count and desktop-entry check still hold.
  • Cargo.toml and Cargo.lock are both at 0.1.1.

Fixed

  • The editable pixel-grid SVGs are kept in packaging/icons/src/ and not installed, so a change to the logo means editing those files, not redrawing pixels. They render to the committed PNGs with 0 pixels different.

Declined

  • 0.1.0's SVGs in a different prefix (for example ~/.local while the package installs to /usr) aren't removed. install.sh only manages its own prefix, and an older ~/.local install should be removed with that install's ./install.sh uninstall.
  • alias-calc-a11y stays at 0.1.0: it's an internal crate that isn't published, and its code is unchanged.

@michaelaguiar
michaelaguiar merged commit c165652 into main Nov 26, 2026
1 check passed
@michaelaguiar
michaelaguiar deleted the aliasbot/alias-calc-png-small-icons branch November 26, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant