mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Add better library item selectors (#5240)
* Add better library item selectors Inspired by the J2K method of library item selection. * Tweak theme selection colors It was missing for Hot Pink and Midnight Dusk. The selector color is 75% alpha of the color accent, this looked fitting for all themes.
This commit is contained in:
		| @@ -3,16 +3,39 @@ | ||||
|     android:color="?attr/colorLibrarySelection"> | ||||
|     <item> | ||||
|         <selector> | ||||
|             <item android:state_selected="true"> | ||||
|                 <color android:color="?attr/colorLibrarySelectionActive" /> | ||||
|             <item | ||||
|                 android:state_selected="true" | ||||
|                 android:top="2dp" | ||||
|                 android:right="2dp" | ||||
|                 android:bottom="2dp" | ||||
|                 android:left="2dp"> | ||||
|                 <shape android:shape="rectangle"> | ||||
|                     <corners android:radius="@dimen/card_radius" /> | ||||
|                     <solid android:color="?attr/colorLibrarySelectionActive" /> | ||||
|                 </shape> | ||||
|             </item> | ||||
|  | ||||
|             <item android:state_activated="true"> | ||||
|                 <color android:color="?attr/colorLibrarySelectionActive" /> | ||||
|             <item | ||||
|                 android:state_activated="true" | ||||
|                 android:top="2dp" | ||||
|                 android:right="2dp" | ||||
|                 android:bottom="2dp" | ||||
|                 android:left="2dp"> | ||||
|                 <shape android:shape="rectangle"> | ||||
|                     <corners android:radius="@dimen/card_radius" /> | ||||
|                     <solid android:color="?attr/colorLibrarySelectionActive" /> | ||||
|                 </shape> | ||||
|             </item> | ||||
|  | ||||
|             <item> | ||||
|                 <color android:color="?android:attr/colorBackground" /> | ||||
|             <item | ||||
|                 android:top="2dp" | ||||
|                 android:right="2dp" | ||||
|                 android:bottom="2dp" | ||||
|                 android:left="2dp"> | ||||
|                 <shape android:shape="rectangle"> | ||||
|                     <corners android:radius="@dimen/card_radius" /> | ||||
|                     <solid android:color="?android:attr/colorBackground" /> | ||||
|                 </shape> | ||||
|             </item> | ||||
|         </selector> | ||||
|     </item> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user