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:
@@ -4,6 +4,7 @@ mod app;
|
||||
mod config;
|
||||
mod devscript;
|
||||
mod input;
|
||||
mod palette;
|
||||
mod player;
|
||||
mod subsonic;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user