mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Enable elevation overlay for MaterialSwitch (#5686)
This commit is contained in:
		| @@ -2,4 +2,5 @@ | ||||
| <resources> | ||||
|     <bool name="lightStatusBar">false</bool> | ||||
|     <bool name="lightNavigationBar">false</bool> | ||||
|     <bool name="elevationOverlayEnabled">true</bool> | ||||
| </resources> | ||||
|   | ||||
| @@ -2,4 +2,5 @@ | ||||
| <resources> | ||||
|     <bool name="lightStatusBar">true</bool> | ||||
|     <bool name="lightNavigationBar">false</bool> | ||||
|     <bool name="elevationOverlayEnabled">false</bool> | ||||
| </resources> | ||||
|   | ||||
| @@ -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--> | ||||
|   | ||||
| @@ -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> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user