Skip to content

fix(icons): drives take Yaru's device artwork before the icon index - #65

Merged
thepathless merged 1 commit into
thepathless:experimentalfrom
priard:fix/drive-icon-theme
Oct 12, 2026
Merged

thepathless merged 1 commit into
thepathless:experimentalfrom
priard:fix/drive-icon-theme

Conversation

@priard

@priard priard commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem

A mounted USB drive looked like it came from another icon set: next to Yaru's folders it showed a small dark outline, and under the dot matrix style it shrank to a few faint dots (the original showing through at partial strength was dark on a dark plate, so almost invisible).

resolveDriveIcon asked the icon index first. That index is theme-agnostic (the first file found under any theme wins), so on a system with Breeze installed drive-removable-media-usb resolved to breeze/devices/16/drive-removable-media-usb.svg instead of Yaru's artwork, which folders use.

Before After
before after

Fix

Known device names (drive-removable-media-usb, usb-pendrive, drive-removable-media, media-removable, drive-harddisk-usb, media-optical) now take Yaru's 256 px device artwork first, as folders do. Other names still go through the icon index. Non-Yaru themes and the monochrome folder colours keep Adwaita's symbolic outlines, unchanged.

The unit test that asserted "the library wins over the hardcoded fallback" now asserts the new order and covers an unmapped name that still resolves through the index.

Testing

  • node --test tests/unit/*.mjs: 168/168
  • tests/static/structure-check.py passes
  • Live dock (Yaru-sage, dots style, plates on): the drive now renders as a full dotted pendrive, matching the folders

The icon index is theme-agnostic: the first file found under any theme
wins, so drive-removable-media-usb resolved to Breeze's 16 px dark
outline. Next to Yaru's folders it looked like a different icon set,
and under the dot matrix it shrank to a few faint dots. Known device
names now use Yaru's 256 px artwork, as folders do; other names still
go through the index.
priard added a commit to priard/omadock that referenced this pull request Oct 11, 2026
@thepathless
thepathless merged commit b16f94b into thepathless:experimental Oct 12, 2026
6 checks passed
@thepathless

Copy link
Copy Markdown
Owner

🎉 Thank you so much for this contribution, @priard! Really appreciate the care you put into it. ✨ Verified on experimental — static gates, unit suites (239 node + 116 python) and the full live dock battery all green, including the marks-centering suite — and merged. Your work is credited in the changelog. 🙏🚀

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