diff options
author | zonghuayang <zonghuayang@google.com> | 2021-12-20 12:42:01 +0800 |
---|---|---|
committer | zonghuayang <zonghuayang@google.com> | 2021-12-21 16:51:12 +0800 |
commit | d58f05ff249d0db1ace432433b0daa0bcc3ce0df (patch) | |
tree | 9f13b6224056e4e821b5fd491899da9ed5e80a14 /res/values | |
parent | 7813f7ddeac714a592a149af4a49a757f3046bd5 (diff) | |
download | ThemePicker-d58f05ff249d0db1ace432433b0daa0bcc3ce0df.tar.gz |
Add items in styles to support snackbar
Add items in styles to support snackbar.
Bug: 203050745
Test: Manual
Change-Id: I4dd886e2d16b4247f4e80f55a08a95ce7cbd64e8
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/styles.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml index c0a0aeda..3991b652 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -41,6 +41,17 @@ <item name="android:windowContentOverlay">@null</item> <item name="android:windowDisablePreview">true</item> + <item name="snackbarStyle">@style/SnackbarMargin</item> + + <item name="borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item> + <item name="colorAccent">@color/accent_color</item> + <item name="colorSurface">@color/design_default_color_surface</item> + <item name="colorOnSurface">@color/design_default_color_on_surface</item> + </style> + + <!-- Snackbar margin --> + <style name="SnackbarMargin" parent="Widget.MaterialComponents.Snackbar"> + <item name="android:layout_margin">48dp</item> </style> <!-- Bottom nav --> |