Skip to content

Impl/artist screen improvements#1135

Merged
theovilardo merged 2 commits intomasterfrom
impl/artist-screen-improvements
Feb 19, 2026
Merged

Impl/artist screen improvements#1135
theovilardo merged 2 commits intomasterfrom
impl/artist-screen-improvements

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

No description provided.

- **Feature: Custom Artist Images**
    - Users can now set a custom image for any artist from the Artist Detail screen.
    - An "Edit" button on the artist header opens a menu to "Change photo" (via system photo picker) or "Reset to default".
    - Selected images are copied to internal app storage to ensure persistence and compressed as JPEGs to save space.
- **Database & Data Layer**:
    - The `artists` table is updated with a `custom_image_uri` column via a new database migration (v22 to v23).
    - `MusicDao` includes new methods (`updateArtistCustomImage`, `getArtistCustomImage`) and updates existing queries to select the new field.
    - `ArtistImageRepository` is expanded with logic to set, clear, and resolve the effective artist image, prioritizing the user's custom image over the one from the Deezer API.
- **UI & Theming**:
    - The `ArtistDetailScreen` now uses a `MaterialTheme` whose color scheme is dynamically generated from the artist's image.
    - The `ArtistDetailViewModel` pre-warms this color palette before the UI loads to prevent a flash of default colors.
    - The UI state now tracks `effectiveImageUrl` (custom or remote) to ensure the correct image is always displayed.
    - The view model and repository now handle the full lifecycle of setting/clearing custom images and regenerating the theme palette accordingly.
- Ensure `SongInfoBottomSheet` and `PlaylistSelectorBottomSheet` in `ArtistDetailScreen` inherit the artist's dynamic color palette by moving them inside the `MaterialTheme` scope.
- Align bottom sheet styling behavior with `AlbumDetailScreen`.
@theovilardo theovilardo merged commit 1d2b448 into master Feb 19, 2026
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