Enable elevation overlay for MaterialSwitch (#5686)

This commit is contained in:
Ivan Iskandar 2021-08-10 04:47:57 +07:00 committed by GitHub
parent 1d10d29fa9
commit 24e5a4d7ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 0 deletions

View file

@ -2,4 +2,5 @@
<resources>
<bool name="lightStatusBar">false</bool>
<bool name="lightNavigationBar">false</bool>
<bool name="elevationOverlayEnabled">true</bool>
</resources>

View file

@ -2,4 +2,5 @@
<resources>
<bool name="lightStatusBar">true</bool>
<bool name="lightNavigationBar">false</bool>
<bool name="elevationOverlayEnabled">false</bool>
</resources>

View file

@ -261,6 +261,17 @@
<item name="tabRippleColor">?attr/colorOnPrimary</item>
</style>
<!--==============-->
<!--Widgets.Switch-->
<!--==============-->
<style name="Widget.Tachiyomi.Switch" parent="Widget.MaterialComponents.CompoundButton.Switch">
<item name="materialThemeOverlay">@style/ThemeOverlay.Tachiyomi.Switch</item>
</style>
<style name="ThemeOverlay.Tachiyomi.Switch" parent="">
<item name="elevationOverlayEnabled">@bool/elevationOverlayEnabled</item>
</style>
<!--================-->
<!--Navigation Views-->

View file

@ -64,6 +64,7 @@
<item name="tabStyle">@style/Widget.Tachiyomi.TabLayout</item>
<item name="bottomNavigationStyle">@style/Widget.Tachiyomi.BottomNavigationView</item>
<item name="navigationRailStyle">@style/Widget.Tachiyomi.NavigationRailView</item>
<item name="switchStyle">@style/Widget.Tachiyomi.Switch</item>
<item name="elevationOverlayEnabled">false</item>
<item name="lightSystemBarsOnPrimary">false</item>