Skip to content

Cache thumbnails and support Dark Mode icons#267

Open
hutber wants to merge 2 commits into
squentin:masterfrom
hutber:hutber-version-pr97
Open

Cache thumbnails and support Dark Mode icons#267
hutber wants to merge 2 commits into
squentin:masterfrom
hutber:hutber-version-pr97

Conversation

@hutber

@hutber hutber commented Jun 7, 2026

Copy link
Copy Markdown

Summary

This PR adds two related UI improvements:

  • Adds an elementary-dark icon set, based on modified Elementary icons, for better visibility with dark themes.
  • Adds disk caching for scaled thumbnails, so resized cover images can be reused between loads instead of being regenerated every time.

Details

The thumbnail cache stores scaled image pixbufs under the user gmusicbrowser home directory in a thumbnails folder. Cache filenames
are generated from the source path, requested size, file size, and modification time, so cached thumbnails are invalidated when the
source image changes.

Animated images are excluded from the disk cache, matching the existing in-memory cache behavior.

Testing

Not formally tested. Changes are limited to image/icon assets and thumbnail loading/cache behavior.

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