Better implementation of Material You #1595
Open
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.
Hello,
I reopen a pull request with the changes made in the previous one and other new ones.
This commit include several changes to the core and non-core layouts of SD Maid. At present the app does not implement a good part of the colors defined in colors within its layouts. For example, the main backgrounds and card backgrounds are not used correctly.
Examples:
To answer your other question regarding toolbar colors, I simply restyled it using the correct parent and correct attributes. See https://github.com/gcantoni/sdmaid-se/blob/main/app/src/main/res/values/styles.xml#L194
Furthermore, to achieve full compatibility with Material You's dynamic colors I had to add the color of the status bar and navigation bar programmatically. See https://github.com/gcantoni/sdmaid-se/blob/main/app/src/main/java/eu/darken/sdmse/common/theming/Theming.kt#L130
It is logically all divided by API. For APIs > 34 the colors are the correct ones. (Refer to Google documentation here https://github.com/material-components/material-components-android/blob/master/docs/theming/Color.md)
Regarding API 31 (https://github.com/gcantoni/sdmaid-se/blob/main/app/src/main/java/eu/darken/sdmse/common/theming/Theming.kt#L147) feel free to change the colors as you like (see https://github.com/gcantoni/sdmaid-se/blob/main/app/src/main/java/eu/darken/sdmse/common/theming/Theming.kt#L157). Help yourself with the documentation that I have attached so you can understand how the colors of the Material 3 library are linked to the Android system resources.
What needs to be improved / fixed?
I can't find the background colors of these pages in the XMLs (I think you set them programmatically because even having added the attribute it doesn't change the background). Check it out, for you who know the app better than me it's a 2 minute thing.
Screenshot_20250209-115220
Screenshot_20250209-115224
Screenshot_20250209-115228
Some screenshots
Basic Light Theme
Screenshot_20250209-114933
Screenshot_20250209-114937
Screenshot_20250209-114947
Screenshot_20250209-114958
Screenshot_20250209-115010
Basic Dark Theme
Screenshot_20250209-115035
Screenshot_20250209-115037
Screenshot_20250209-115048
Screenshot_20250209-115053
Screenshot_20250209-115103
Material You Light Theme
Screenshot_20250209-115114
Screenshot_20250209-115117
Screenshot_20250209-115122
Screenshot_20250209-115127
Screenshot_20250209-115134