Fixed
Status Update
Comments
ma...@google.com <ma...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit f644f01de94603665d8765e8c3d2abafd5ed266a
Author: Matvei Malkov <malkov@google.com>
Date: Tue Aug 04 15:02:38 2020
Snackbar API polish
Added possibility to customize background and content colors and provided defaults via SnackbarConstants object
Change-Id: I238f223914322fd47ad6c9707219075c45706c08
Relnote: Snackbar has customizable background and content colors now
Fixes: 161804381
Test: should pass
M ui/ui-material/api/current.txt
M ui/ui-material/api/public_plus_experimental_current.txt
M ui/ui-material/api/restricted_current.txt
M ui/ui-material/integration-tests/material-demos/src/main/java/androidx/compose/material/demos/SnackbarDemo.kt
M ui/ui-material/samples/src/main/java/androidx/compose/material/samples/SnackbarSample.kt
M ui/ui-material/src/commonMain/kotlin/androidx/compose/material/Snackbar.kt
https://android-review.googlesource.com/1387798
Branch: androidx-master-dev
commit f644f01de94603665d8765e8c3d2abafd5ed266a
Author: Matvei Malkov <malkov@google.com>
Date: Tue Aug 04 15:02:38 2020
Snackbar API polish
Added possibility to customize background and content colors and provided defaults via SnackbarConstants object
Change-Id: I238f223914322fd47ad6c9707219075c45706c08
Relnote: Snackbar has customizable background and content colors now
Fixes: 161804381
Test: should pass
M ui/ui-material/api/current.txt
M ui/ui-material/api/public_plus_experimental_current.txt
M ui/ui-material/api/restricted_current.txt
M ui/ui-material/integration-tests/material-demos/src/main/java/androidx/compose/material/demos/SnackbarDemo.kt
M ui/ui-material/samples/src/main/java/androidx/compose/material/samples/SnackbarSample.kt
M ui/ui-material/src/commonMain/kotlin/androidx/compose/material/Snackbar.kt
Description
API feedback from Snackbar:
text
slot to the last parambackgroundColor
andcontentColor
because they disappear automatically
makeSnackbarPrimaryColor()
function toSnackbarConstants