Closed manabu-nakamura closed 10 months ago
Scrims use the scrim color role at an opacity of 32%.
Navigation drawers scrim color md.ref.palette.neutral-variant20
Navigation drawers scrim opacity 0.4
Element | Attribute | Related method(s) | Default value
Color | N/A | setScrimColor on DrawerLayout | Black at 60% opacity
On Android platforms, the scrim color and opacity is automatically handled by the system UI.
Resolved in f3e4439ca69f993baa6626ad6a82937c2d283155
Is your feature request related to a problem? Please describe. The scrim color of the navigation drawer, the side sheet, the bottom sheet, the date picker, and the time picker is darker than the scrim color of the dialog. Why? The icons in the system navigation bar are hard to see. https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-drawerlayout-release/drawerlayout/drawerlayout/src/main/java/androidx/drawerlayout/widget/DrawerLayout.java#172 https://android.googlesource.com/platform/prebuilts/fullsdk/platforms/+/refs/heads/main/android-34/data/res/values/themes_material.xml#53 https://android.googlesource.com/platform/prebuilts/fullsdk/platforms/+/refs/heads/main/android-34/data/res/values/themes_material.xml#424 https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/dialog/res/values/themes_overlay.xml#L38
Describe the solution you'd like Unify the scrim color (lighten the scrim color of the navigation drawer, the side sheet, the bottom sheet, the date picker, and the time picker).