Repository navigation
feat(theme): wallpaper-derived dynamic accent for buttons - #1098
Merged
Merged
Conversation
Add rememberDynamicAccent(), which reads the user's Material You (Monet) palette via Material3 dynamicDarkColorScheme() on Android 12+ and falls back to brand colors below API 31. Pulls compose-material3 into :ui:theme as the first step toward a broader Material3 migration. Use it to color the currency creator's bill-customization action button (now "Next") with the system accent, à la Google Photos' save action. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
bmc08gt
added a commit
that referenced
this pull request
Jul 24, 2026
Add rememberDynamicAccent(), which reads the user's Material You (Monet) palette via Material3 dynamicDarkColorScheme() on Android 12+ and falls back to brand colors below API 31. Pulls compose-material3 into :ui:theme as the first step toward a broader Material3 migration. Use it to color the currency creator's bill-customization action button (now "Next") with the system accent, à la Google Photos' save action. Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
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.
What
Adds
rememberDynamicAccent()to:ui:theme— a small helper that returns the user's Material You (Monet) accent color derived from their wallpaper / system theme, à la Google Photos' Save action.On Android 12+ it reads the palette via Material3's
dynamicDarkColorScheme()(we're dark-only, so we always take the dark scheme) and returns itsprimary/onPrimary. Below API 31 it falls back to the brand colors you pass in.First use: the currency creator's bill-customization action button (relabelled "Done" → "Next") now uses the system accent instead of a flat white pill.
Notes
compose-material3into:ui:themefor the first time. This is the intended first step toward migrating the theme layer off the bespoke Material2-based color system onto Material3 — the natural follow-up is mapping the fulldynamicDarkColorSchemeintocom.getcode.theme.ColorSchemeat theDesignSystem(colorScheme = …)entry point so dynamic color can flow app-wide.minSdkis 29, so the helper guards onBuild.VERSION.SDK_INT >= Sand falls back to brand colors on older devices.Testing
:ui:theme:compileDebugKotlinand:apps:flipcash:features:currency-creator:compileDebugKotlinboth build clean (verified in an isolated worktree at this commit).