-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Context
Per specs/design.md, the ambient glow behind album art in NowPlayingScreen should use the dominant color extracted from the current track's album art, rather than the static AccentPrimary green currently used.
Proposed changes
- Use Android
PaletteAPI to extract dominant/vibrant swatch from the loaded bitmap - Apply luminance gating: if extracted color is too dark (<30 luminance) or too light (>80), fall back to
AccentPrimary - Animate color transition between tracks using
animateColorAsState - Fallback:
AccentPrimarywhen no album art is present or Palette extraction fails
Implementation notes
Palette.from(bitmap).generate { palette ->
val dominant = palette?.getDominantColor(AccentPrimary.toArgb())
// luminance gate, then update state
}Coil's ImageRequest supports a listener or target that provides the loaded Drawable/Bitmap for Palette extraction.
Files affected
ui/nowplaying/NowPlayingScreen.kt—NowPlayingAlbumArtcomposableui/nowplaying/NowPlayingViewModel.kt— expose extracted color as stateapp/build.gradle.kts—androidx.palette:palette-ktxdependency
Flagged from
Design language PR #91
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request