Skip to content

feat: added MuseFM theme and a play button design setting - #47

Merged
ZortexSenpai merged 1 commit into
mainfrom
feat/musefm-theme
Dec 5, 2026
Merged

ZortexSenpai merged 1 commit into
mainfrom
feat/musefm-theme

Conversation

@ZortexSenpai

Copy link
Copy Markdown
Owner

Summary

A dark MuseFM theme in the look of MuseFM, and a Play button setting that picks the player's play button design in any theme.

 Settings → Appearance
   Theme          Dark: … Monokai Pro, + MuseFM, Nord …
   Accent color
   …
+  Play button    [Match theme] [Circle] [Orb] [Record] [Square] [Sticker]   ← live previews
   Seek bar

The play button gets its design stamped on it; globals.css has one block per design, painted only with theme tokens:

design = playButtonStyle == "theme"
  ? genshin-* → orb    (the Genshin themes' existing button, now a design)
    musefm    → record
    otherwise → circle (Reverb's own)
  : playButtonStyle
<button class="play-button" data-design={design} data-playing={playing}>   ← record spins while playing

The MuseFM theme is a palette plus CSS keyed off plain hook classes that only it styles:

<AppShell>
  <Sidebar>              .sidebar .brand .nav-link     rule along the edge, condensed brand, inked open link
  <HomeView>
    <Hero>               .hero .sleeve .hero-title     framed, hard marigold shadow, record out of the sleeve
    <Stat>               .stat-tile                    MuseFM's pop-colour tiles
    <Shelf>              .shelf-head                   heavy rule instead of a box
      <AlbumCard> …      .media-card .card-art .card-play   cover lifts with a pop-colour shadow; play is a spinning record
    genre tiles          .genre-tile                   flat pop colours
  <AlbumDetailView> …    .detail-head .sleeve          grooved panel, big condensed title, record out of the sleeve
  <SongTable>            .song-table-head .song-row    ruled labels, chart-rank numbers, playing-row mark
  <SettingsView>         .settings-section             ruled sections
  <PlayerBar>            .player-bar                   FM dial with the tomato needle
  <QueuePanel>           .queue-panel                  inked index tabs

Also: MuseFM's dark palette verbatim, Archivo bundled (SIL OFL, loads only with this theme), square corners, hard-shadow buttons, paper grain, framed menus and dialogs. In the liquid layout the sidebar, main content, player bar and Queue are solid rounded frames with a muted edge instead of glass.

Preferences.playButtonStyle defaults to "theme", so existing settings files keep today's button. Strings in all four languages.

Evidence

  • Before: 214 tests; the play button's look was fixed per theme ([data-theme^="genshin-"] .play-button).
    After: 218 tests pass. New playButton.test.ts:
    themePlayButton("genshin-furina") → orb; ("musefm") → record; ("dark" | "system") → circle
    resolvePlayButton("square", "genshin-hu-tao") → square   (a chosen design beats the theme)
    
    Rust persistence::settings tests (14) pass, with playButtonStyle added to the camelCase round-trip and the old-file defaults ("theme"). tsc --noEmit and vite build are clean.
  • Visual: checked with headless renders of mock pages built from the components' markup and the compiled CSS: Home, an album page with a context menu, the liquid layout with the Queue open, and the picker under MuseFM, dark, light and a Genshin theme. These were not taken in the running app and aren't attached.

Merge Danger

Door: two-way

A new preference with a default, plus CSS. Reverting leaves at most an unused playButtonStyle in settings files.

Blast Radius: cosmetic

  • The Genshin themes' play button is now drawn by the orb design via data-design rather than a theme rule. It should look the same.
  • The play button's buffering spinner now follows the icon colour, which is the same as before on the plain circle.
  • The hook classes on shared components are inert outside MuseFM. Some MuseFM rules key off Tailwind utility names (h2.text-lg, .bg-gradient-to-t, button.bg-accent.text-white), so they would quietly stop applying if those utilities change.
  • About 176 KB of fonts in the bundle, loaded only while MuseFM is on.
  • Not yet seen in the running app on WebView2, WKWebView or WebKitGTK. The CSS relies on font-stretch, color-mix(), aspect-ratio on pseudo-elements, and individual translate/rotate/scale properties.

🤖 Generated with Claude Code

A dark theme in the look of MuseFM, the self-hosted scrobbler, and a
setting that picks the player's play button design in any theme.

- MuseFM theme, in the Dark section of the theme picker: MuseFM's dark
  palette verbatim; Archivo (bundled, SIL OFL, only loaded with the
  theme) with condensed headings; square corners, hard-shadow buttons
  and paper grain; an FM dial on the player bar; records and sleeves on
  covers and card play buttons; pop-colour stat and genre tiles; ruled
  sections; an inked sidebar; framed menus and dialogs. In the liquid
  layout the panels are solid rounded frames rather than glass.
- Components carry plain hook classes (media-card, sleeve, stat-tile,
  queue-panel, ...) that only the MuseFM theme styles.
- Play button setting in Settings -> Appearance: Match theme, Circle,
  Orb, Record, Square or Sticker, each previewed in the picker. Match
  theme keeps each theme's own: the circle, the Genshin orb (now the
  orb design) and MuseFM's record. The record spins while playing.
- Preferences.playButtonStyle (default "theme"), so existing settings
  files keep today's button. Strings in all four languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ZortexSenpai
ZortexSenpai merged commit 7f2a081 into main Dec 5, 2026
10 checks passed
@ZortexSenpai
ZortexSenpai deleted the feat/musefm-theme branch December 5, 2026 00:04
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