Skip to content

fix: show a recognizable icon for RAR archives - #275

Merged
nextestudios merged 1 commit into
mainfrom
fix/rar-icon
Sep 29, 2026
Merged

nextestudios merged 1 commit into
mainfrom
fix/rar-icon

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Closes #274.

  • ShellIconProvider: for .rar, if the Shell returns the generic blank-page icon (same image index as an unregistered extension), render ArchiveGlyph (original box-with-zipper icon drawn in code, sized to the request, no third-party artwork). A registered association icon (e.g. WinRAR's) is used as before.
  • IIconProvider.Revision: fingerprint of the .rar ProgId/DefaultIcon (read at most every 2 s); IconLoader drops its cache when it changes, so installing/changing the program refreshes icons.
  • Same path serves List and Grid (same IconRequest by extension). Other types untouched.
  • Tests: unit (glyph size/alpha/premultiplication), Windows integration (a .rar always gets an icon). Manual checks added to docs/TESTING.md (not validated on hardware).

🤖 Generated with Claude Code

Use the icon Windows registered for .rar; when the Shell only has the generic blank page,
draw an original archive icon (no third-party artwork). The icon cache drops when the
.rar association changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nextestudios
nextestudios merged commit f59161e into main Sep 29, 2026
1 check passed
@nextestudios
nextestudios deleted the fix/rar-icon branch September 29, 2026 19:24
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.

fix: show recognizable icons for RAR archives

1 participant