Better implementation of Material You #1594
Closed
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,
these commits 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.
Example - layout/dashboard_fragment.xml:
<?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:background="?attr/colorSurfaceContainer" android:layout_width="match_parent" android:layout_height="match_parent">
Attribute android:background="?attr/colorSurfaceContainer" was missing.
Another example - setup_shizuku_item.xml:
<?xml version="1.0" encoding="utf-8"?> <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" style="@style/DashboardCardItem" app:cardCornerRadius="@dimen/cardRadius" app:cardBackgroundColor="?attr/colorSurface" android:layout_width="match_parent" android:layout_height="wrap_content">
Both attributes cardCornerRadius and cardBackgroundColor were missing.
At the same time, some changes have been made to the styles and themes of the app to ensure a better implementation of basic theme and Material You.
The implementation for the basic theme (NO Material You) is much better but somehow some colors related to the toolbars are hardcoded on the code side. (in particular some menu icons - see attached screeshots)
Material You's implementation follows similar with the exception of the status bar and navigation bar. It would be better to avoid defining hardcoded elements (such as the color of the status bar here https://github.com/d4rken-org/sdmaid-se/blob/main/app/src/main/java/eu/darken/sdmse/common/theming/Theming.kt#L125)
Some screenshots
Screenshot_20250208-142731
Screenshot_20250208-142747
Screenshot_20250208-142752
Screenshot_20250208-142803
Screenshot_20250208-142809
Screenshot_20250208-142841
Screenshot_20250208-142915
Screenshot_20250208-142924
Screenshot_20250208-142942
Screenshot_20250208-142945