Skip to content

Lyrics from more sources, desktop themes, artist and song stats - #40

Merged
gridoe merged 12 commits into
mainfrom
feat/lyrics-themes-stats
Nov 22, 2026
Merged

gridoe merged 12 commits into
mainfrom
feat/lyrics-themes-stats

Conversation

@gridoe

@gridoe gridoe commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Everything since 0.3.2, for 0.3.3.

Lyrics

  • Lyrics come from seven sources (BetterLyrics, lrc.red, YouTube Music synced, LRCLIB, KuGou, Unison, YouTube Music). All the ticked ones are asked at once, and the first synced answer in the listener's order wins. Settings orders and ticks them; the lyrics panel can switch to another source's answer for the song playing.
  • Romanised lyrics are preferred for Japanese, Korean and Chinese, on by default.
  • Genius is gone: plain text only, a 615 KB page scraped per song, and the slowest source but one.

Themes

  • macOS, Windows and Breeze themes. A fresh install starts on the one matching the system.
  • On Linux, GTK and Qt themes that follow the desktop's colours.
  • The GTK colours are read only when GTK is the theme or Settings is open. Reading them starts a child process (about 0.13 s of CPU and 85 MB), which used to run at every startup and focus change.
  • The GTK helper no longer leaves a crash report behind when the app quits before it answers.

Stats

  • Artist and song stats pages: plays, listening time, first and last played, rank all-time and over 6 months, most plays in a day, top songs and first song (artists), and plays by month. Opened from Stats' top lists, "Your stats" in a song's menu, or a new button on the artist page.
  • The artist page's line names a top-10 rank ("Your [bug] the app not launching on windows 11 #2 artist", "Your Crash: buffer slice can not be empty #3 artist this month"), otherwise your total plays.

Fixes

  • The album rows' hover play icon sits over the track number.
  • Settings rows keep a margin under long descriptions; the lyrics sources window fits its rows.

Tested on Linux: fmt, clippy -D warnings, 688 + 58 tests, and the app itself (screenshots of the stats and artist pages, lyrics sources, theme switching). Windows and macOS are checked by CI.

Every source that's on is asked at once. The first one in your order with
timed lyrics is shown, and plain text only when none had timing. A source
that's off is never contacted.

Sources: BetterLyrics, lrc.red, YouTube Music synced, LRCLIB, KuGou,
Unison, YouTube Music plain and Genius. Settings > Integrations has a
"Lyrics sources" window to reorder them and switch each on or off. The
lyrics header has a small picker listing the sources that found lyrics
for the song, and a pick holds for that song this session.

The old LRCLIB switch carries over: off stays off. LRC fractions are now
read by their digit count, so [00:01.05] is 1.05 s, not 1.5 s.

The approach follows BitChord's (github.com/kushagrasinghx/BitChord).
The icon that takes a track number's place on hover was centred in the
whole number column, so it landed right of the number and reached into
the gap before the title. It now ends where the numbers end, and so does
the loading spinner. The row test now looks for the number itself rather
than any text in the column.
… the system's

Six new built-in themes: macOS Dark and Light, Windows Dark and Light
(Windows 11 Fluent), and Breeze Dark and Light (KDE Plasma). Existing
installs get them in their themes folder on the next start.

A first start on a Mac uses macOS Dark, and on Windows uses Windows Dark,
with the matching light theme for light mode. Linux keeps Classic. A
settings file that already exists keeps the theme it names, so nobody's
look changes on an update.
Two more entries in the theme list, offered in both modes: "GTK" and "Qt".
Like Chrome's, they take their colours from the desktop. Qt's come from
kdeglobals and the colour scheme it names. GTK's come from the GTK theme's
named colours, read by refryt in a child process. Both are read again when
the window regains focus, so a change of desktop theme follows. Picking one
sets it for light and dark alike.
…sources window fits its rows

A settings row whose description wraps past two lines grew taller, but its
last line sat on the row's bottom edge. It now keeps 10 px under it. Rows
whose words fit are unchanged.

In the Lyrics sources window each source's switch left the list's cursor
halfway down its row, so every row started 21 px inside the one before and
they overlapped, leaving empty space under the list. The switches are now
placed apart from the list, and the card's height is measured from its
title, description and buttons.
Ending it at the numbers' right edge put it left of the usual one-digit
track number. It now sits over the number for tracks 1 to 9, and still
covers a two-digit one.
For Japanese, Korean and Chinese songs, a lyrics source with romanised
lines now wins over higher ones without, and each line leads with the
romanisation, the original smaller under it. The first lyrics found still
show at once; a romanised answer replaces them when it arrives.

Romanisation comes from Apple Music's lyrics (BetterLyrics, lrc.red),
which carry it alongside the lines, and from LRC files that hold the song
in Japanese and again in romaji under the same timestamps: those twins are
joined into one line, when they read as romaji across the whole file. The
picker marks a source that has it. The setting is "Prefer romanised lyrics"
in Settings.
Reading the GTK colours starts a child process, about 0.13 s of CPU and 85 MB each time. It
ran in the background at startup and again whenever the window came back into focus, even
for people not using the GTK theme. Now it runs only when GTK is the light or dark theme, or
once Settings, where it's offered, is open. Qt's theme is still re-read on focus.
Genius has only plain lyrics, and every song meant scraping a page of about 615 KB. It was
also the slowest source but one (around 0.6 s). The other sources already cover it, synced
ones included. A saved order that still lists Genius drops it.
Clicking an artist or song in Stats' top lists, or "Your stats" in a song's menu, opens a
page of your listening to it, worked out from the play log:
- plays, listening time, and when you first and last played it
- its rank all-time and over 6 months, and the most plays in one day
- for an artist: the songs of theirs you've played, your top 10, and your first song by them
- plays by month (by year for a long history)

The header plays the song or the artist's top songs. An artist's stats link to their artist
page, and a song's to its artist's stats.

The artist page gets a stats button beside Mix and Shuffle. The line under the name now
names a top-10 rank, "Your #2 artist" or "Your #3 artist this month", and otherwise the plays
("N total plays by you"). That line is a point larger.
…p quits first

The helper that reads the GTK colours is a second copy of refryt. If the app quit while GTK
was still starting in it, the helper's println! hit a closed pipe and panicked, and since the
crash hook was already installed, the next launch offered a crash report as if refryt had
crashed. The helper now writes its answer without panicking, and starts before the log and
the crash hook, so its failing only costs the GTK theme.
… stats

The README read flat. It now speaks to the reader, lists the stats pages and lyrics sources, counts 29 themes plus GTK and Qt, and says more about installing: AppImage managers, which builds update themselves, SmartScreen's "Run anyway", and that the AUR packages may lag behind.
@gridoe
gridoe merged commit ee9dfb5 into main Nov 22, 2026
3 checks passed
@gridoe
gridoe deleted the feat/lyrics-themes-stats branch November 22, 2026 11:25
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