feat: add an option to colour the UI from the playing track's cover

A new Settings section in the sidebar turns it on and off. It is saved
in settings.toml, apart from the login, so logging out keeps it.

Each theme colour keeps the lightness it has in the brand palette and
only takes the cover's dominant hue, so text stays readable on any
cover. Covers with too little colour, and nothing playing, use the
brand palette. Slint cannot animate a global, so a timer in Rust fades
the Theme colours to the new palette over 800 ms.
This commit is contained in:
Ansho Rei
2026-11-04 03:45:17 +01:00
parent a04b7ee37f
commit 3cb810bbd5
6 changed files with 730 additions and 36 deletions
+2
View File
@@ -23,6 +23,8 @@ Some servers refuse token logins (Subsonic error 41), Nextcloud Music among them
Covers are cached in `~/.cache/remus/covers`.
Preferences live apart from the login, in `~/.config/remus/settings.toml`, so logging in again keeps them. Change them under Settings in the sidebar. "Colours from album art" tints the interface with the cover of the playing track and fades to the next one when the track changes. It is off by default.
## Install on SteamOS
Build the bundle on any Linux machine with Flatpak: