mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-29 07:34:13 +01:00
The Material full player, mini player, desktop player bar and desktop Now Playing now take their ColorScheme from the current cover through a local PlayerArtworkTheme, as DESIGN.md principle 3 asks. The app chrome around them, and the downloads popover hosted in the bar, keep the app scheme. The bar keeps its surfaceContainer tier, so resting chrome stays calm; the play buttons use the cover's primary and onPrimary. The scope shows a cached scheme on the first frame, keeps the previous cover's scheme while the next one resolves, falls back to the app scheme without readable art, and moves the whole scheme with one controller and ColorScheme.lerp on the effects spring (a static swap under reduced motion). Each cover change starts one palette job, shared through the CoverPalette cache. With AMOLED on, the page background stays pure black. CoverPalette gains an opt-in neutral scheme: a cover whose source color has an HCT chroma of 12 or less gets a monochrome scheme instead of Score's fallback blue or a muddy tint. The Material player and Material headers (CoverPaletteBuilder) opt in; Mornye keeps the tonal scheme, so its surfaces render as before.