feat: implement customizable collage patterns for the Home screen#1154
Merged
theovilardo merged 1 commit intomasterfrom Feb 20, 2026
Merged
feat: implement customizable collage patterns for the Home screen#1154theovilardo merged 1 commit intomasterfrom
theovilardo merged 1 commit intomasterfrom
Conversation
- **Data & Preferences**:
- Introduce `CollagePattern` enum with five distinct layout styles: Cosmic Swirl, Honeycomb Groove, Vinyl Stack, Pixel Mosaic, and Stardust Scatter.
- Add `collage_pattern` and `collage_auto_rotate` keys to `UserPreferencesRepository` with associated flows and update methods.
- **UI & Components**:
- Implement `buildCollageConfigs` to generate shape, size, and alignment configurations for each `CollagePattern`.
- Update `AlbumArtCollage` to accept a `pattern` parameter and dynamically render the selected layout.
- Add "Home Collage" section to Settings, allowing users to select a specific pattern or enable "Auto-Rotate" to cycle through patterns on each visit.
- **ViewModel & Integration**:
- Update `SettingsViewModel` to manage collage pattern and rotation state.
- Enhance `HomeScreen` to handle pattern selection logic, respecting the auto-rotation preference using `rememberSaveable`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CollagePatternenum with five distinct layout styles: Cosmic Swirl, Honeycomb Groove, Vinyl Stack, Pixel Mosaic, and Stardust Scatter.collage_patternandcollage_auto_rotatekeys toUserPreferencesRepositorywith associated flows and update methods.buildCollageConfigsto generate shape, size, and alignment configurations for eachCollagePattern.AlbumArtCollageto accept apatternparameter and dynamically render the selected layout.SettingsViewModelto manage collage pattern and rotation state.HomeScreento handle pattern selection logic, respecting the auto-rotation preference usingrememberSaveable.