[Compound] Implement Snackbars based on designs (#1054)
* Make `InternalButton` internal instead of private so it can be customised. Also, change the `ButtonColors.contentColor` for text buttons to `LocalContentColor.current` by default. * Add temporary color for Snackbar action label * Implement `Snackbar` component based on Compound * Propagate changes to all other components * Use right Preview annotation config * Move `ButtonVisuals` to their own file * Update screenshots * Make previews internal * Update screenshots * Set a custom token for contentColor in AppBars * Change 'Label' to 'Action' in the previews * Add changelog * Update screenshots --------- Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
parent
acf29036a6
commit
9e1ff513e4
49 changed files with 441 additions and 147 deletions
|
|
@ -17,6 +17,8 @@
|
|||
package io.element.android.libraries.theme
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import io.element.android.libraries.theme.compound.generated.internal.DarkDesignTokens
|
||||
import io.element.android.libraries.theme.compound.generated.internal.LightDesignTokens
|
||||
|
||||
// =================================================================================================
|
||||
// IMPORTANT!
|
||||
|
|
@ -26,3 +28,6 @@ import androidx.compose.ui.graphics.Color
|
|||
// =================================================================================================
|
||||
|
||||
val LinkColor = Color(0xFF0086E6)
|
||||
|
||||
val SnackBarLabelColorLight = LightDesignTokens.colorGray700
|
||||
val SnackBarLabelColorDark = DarkDesignTokens.colorGray700
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue