Skip to content

feat: use the brand tile as the plugin icon - #53

Merged
bloodf merged 2 commits into
mainfrom
feat/brand-icon
Nov 17, 2026
Merged

bloodf merged 2 commits into
mainfrom
feat/brand-icon

Conversation

@bloodf

@bloodf bloodf commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • The icon OrcaSlicer shows on the Spooler tab is now the brand tile (assets/orca-cloud/spooler-tile.png) at 40x40, white surround made transparent: assets/spooler-plugin-icon.png (3.1 KB).
  • plugin/spooler/spooler_any.py: the inline white spool TAB_ICON_SVG is replaced by TAB_ICON_PNG (base64 of that file); icon_path() writes it to the data folder as spooler-icon.png.
  • New file name on purpose: OrcaSlicer strips the extension and tries .svg before .png (PluginPages::create_page -> create_scaled_bitmap, 20 px high), so the spooler_tab.svg older versions wrote would otherwise still win.
  • The release store image (release.yml copies assets/orca-cloud/spooler-tile.png to spooler-store-image.png) already is the tile; unchanged. The page header mark is unchanged.
  • Version 0.29.1 (# version, PLUGIN_VERSION, ui/package.json, ui/package-lock.json), CHANGELOG: "Changed: the plugin icon is the new brand tile."

Test plan

  • python scripts/check_version.py, python scripts/build.py
  • npm ci && npm run build in ui/: spooler_any.py and ui/build.json unchanged after the build
  • ruff check plugin scripts tests
  • WORKERS=1 python -m unittest discover -s tests, including the new tests/test_icon.py: 40x40, transparent corners, dominant colour equals the tile's band colour, white mark present, embedded bytes equal the asset, icon_path() writes them
  • Load 0.29.1 in OrcaSlicer and check the tab icon

xxxxxxxxxxxxx and others added 2 commits November 16, 2026 23:35
OrcaSlicer draws the Pages tab icon from the file get_icon() returns, 20 px
high, loading name.svg before name.png. The tab icon is now the store tile at
40x40 (assets/spooler-plugin-icon.png, white surround made transparent),
embedded as TAB_ICON_PNG and written as spooler-icon.png, a new name so the
spooler_tab.svg older versions left behind does not win. It replaces the
inline white spool SVG.

Bumps the version to 0.29.1.
@bloodf
bloodf merged commit 8d0aaeb into main Nov 17, 2026
6 checks passed
@bloodf bloodf mentioned this pull request Nov 17, 2026
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.

2 participants