Skip to content

Commit

Permalink
Blank theme: snackbar
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jul 13, 2024
1 parent c458d02 commit 0708d0d
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,11 @@
<item name="snackbarStyle">@style/WhiteSnackBar</item>
</style>

<style name="WhiteSnackBar" parent="Widget.Design.Snackbar">
<item name="android:paddingLeft">0dp</item>
<item name="android:paddingRight">0dp</item>
</style>

<style name="AppThemeBlank" parent="AppThemeBlueOrangeLight">
<item name="colorPrimary">@color/white</item>
<item name="colorPrimaryDark">@color/white</item>
Expand All @@ -443,12 +448,24 @@
<item name="colorInfoForeground">@color/blackPrimary</item>
<item name="colorInfoBackground">@color/smoke</item>

<item name="snackbarStyle">@style/WhiteSnackBar</item>
<item name="snackbarStyle">@style/BlankSnackBar</item>
<item name="snackbarTextViewStyle">@style/BlankSnackBarText</item>
<item name="snackbarButtonStyle">@style/BlankSnackBarButton</item>
</style>

<style name="WhiteSnackBar" parent="Widget.Design.Snackbar">
<item name="android:paddingLeft">0dp</item>
<item name="android:paddingRight">0dp</item>
<style name="BlankSnackBar" parent="Widget.Design.Snackbar">
<item name="android:background">@color/smoke</item>
</style>

<style name="BlankSnackBarText" parent="@style/Widget.MaterialComponents.Snackbar.TextView">
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
</style>

<style name="BlankSnackBarButton" parent="@style/Widget.MaterialComponents.Button.TextButton.Snackbar">
<item name="android:textColor">?colorAccent</item>
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
<item name="android:textAllCaps">true</item>
</style>

<style name="AppThemeBlackAndWhite" parent="AppThemeBaseDark">
Expand Down

0 comments on commit 0708d0d

Please sign in to comment.