Skip to content

Commit

Permalink
fix themes on api16
Browse files Browse the repository at this point in the history
  • Loading branch information
tsynik committed Jun 6, 2024
1 parent f98c5fd commit 29a4854
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
26 changes: 26 additions & 0 deletions app/src/main/res/values-v17/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="HeadPreferenceCategoryText" parent="TextAppearance.MaterialComponents.Subtitle1">
<item name="android:textColor">?attr/colorPrimary</item>
<item name="android:textAllCaps">true</item>
<item name="android:textSize">16sp</item>
<item name="android:paddingTop">32.0dip</item>
<item name="android:paddingStart">16.0dip</item>
<item name="android:paddingBottom">16.0dip</item>
</style>

<style name="AlertButtonStyle" parent="@style/Widget.MaterialComponents.Button.OutlinedButton">
<item name="android:layout_marginStart">6dp</item>
<item name="android:layout_marginEnd">6dp</item>
<item name="android:layout_marginTop">6dp</item>
<item name="android:layout_marginBottom">0dp</item>
</style>

<style name="MaterialSnackbarButtonTheme" parent="@style/Widget.MaterialComponents.Button.OutlinedButton">
<item name="android:layout_marginEnd">12dp</item>
<item name="materialThemeOverlay">@style/WhiteButtonThemeOverlay</item>
<item name="strokeColor">@color/tv_white</item>
<item name="strokeWidth">1dp</item>
</style>
</resources>
8 changes: 4 additions & 4 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<item name="android:textAllCaps">true</item>
<item name="android:textSize">16sp</item>
<item name="android:paddingTop">32.0dip</item>
<item name="android:paddingStart">16.0dip</item>
<item name="android:paddingLeft">16.0dip</item>
<item name="android:paddingBottom">16.0dip</item>
</style>
<!-- Main Menu -->
Expand Down Expand Up @@ -213,8 +213,8 @@
</style>
<!-- Dialog Buttons -->
<style name="AlertButtonStyle" parent="@style/Widget.MaterialComponents.Button.OutlinedButton">
<item name="android:layout_marginStart">6dp</item>
<item name="android:layout_marginEnd">6dp</item>
<item name="android:layout_marginLeft">6dp</item>
<item name="android:layout_marginRight">6dp</item>
<item name="android:layout_marginTop">6dp</item>
<item name="android:layout_marginBottom">0dp</item>
</style>
Expand All @@ -225,7 +225,7 @@
</style>
<!-- Snackbar Buttons -->
<style name="MaterialSnackbarButtonTheme" parent="@style/Widget.MaterialComponents.Button.OutlinedButton">
<item name="android:layout_marginEnd">12dp</item>
<item name="android:layout_marginRight">12dp</item>
<item name="materialThemeOverlay">@style/WhiteButtonThemeOverlay</item>
<item name="strokeColor">@color/tv_white</item>
<item name="strokeWidth">1dp</item>
Expand Down

0 comments on commit 29a4854

Please sign in to comment.