ghusta / android-docker-search

:whale: Docker Search on Android
2 stars 0 forks source link

Migrate to Material Design 3 #301

Open ghusta opened 1 year ago

ghusta commented 1 year ago

References :


Theme Builder : https://material.io/blog/material-theme-builder


Material3 themes :

⚠ Replacement for Theme.MaterialComponents.Light.DarkActionBar ???


Dynamic Color:

ghusta commented 1 year ago

mapping-colors-mdc-appcompat

NOTE: For MD2 only

ghusta commented 1 year ago

See also : https://www.youtube.com/watch?v=QDp8X43oFy8

ghusta commented 1 year ago

For status bar theme :

See : Android theming: Set Status Bar color to Action Bar color in Material3

Example :

<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">true</item>
ghusta commented 2 days ago

Color system change from M2 to M3 :

M2 color system (left) versus M3 color system (right)

Source : https://developer.android.com/develop/ui/compose/designsystems/material2-material3#color

ghusta commented 2 days ago

Given the significant differences between the M2 and M3 color systems, there’s no reasonable mapping for [Color](https://developer.android.com/reference/kotlin/androidx/compose/material/Colors#isLight()) parameters. Instead, use the Material Theme Builder tool to generate an M3 color scheme. Use the M2 colors as “core” source colors in the tool, which the tool expands into tonal palettes used by the M3 color scheme. The following mappings are recommended as a starting point:

image