mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Initial AMOLED theme + some CardView fixes (#787)
* Initial AMOLED theme + some CardView fixes * small fix
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							2eeac0bf8b
						
					
				
				
					commit
					2118434823
				
			| @@ -25,11 +25,13 @@ | ||||
|     <string-array name="themes_values"> | ||||
|         <item>1</item> | ||||
|         <item>2</item> | ||||
|         <item>3</item> | ||||
|     </string-array> | ||||
|  | ||||
|     <string-array name="themes"> | ||||
|         <item>@string/light_theme</item> | ||||
|         <item>@string/dark_theme</item> | ||||
|         <item>@string/amoled_theme</item> | ||||
|     </string-array> | ||||
|  | ||||
|     <string-array name="reader_themes"> | ||||
|   | ||||
| @@ -131,6 +131,7 @@ | ||||
|     <string name="pref_theme">Application theme</string> | ||||
|     <string name="light_theme">Main theme</string> | ||||
|     <string name="dark_theme">Dark theme</string> | ||||
|     <string name="amoled_theme">AMOLED theme</string> | ||||
|     <string name="pref_start_screen">Start screen</string> | ||||
|     <string name="pref_language">Language</string> | ||||
|     <string name="system_default">System default</string> | ||||
|   | ||||
| @@ -147,10 +147,11 @@ | ||||
|         <item name="android:layout_width">match_parent</item> | ||||
|         <item name="android:layout_height">wrap_content</item> | ||||
|         <item name="cardBackgroundColor">?attr/background_card</item> | ||||
|         <item name="android:layout_marginLeft">@dimen/card_margin</item> | ||||
|         <item name="android:layout_marginRight">@dimen/card_margin</item> | ||||
|         <item name="android:layout_marginTop">@dimen/card_margin</item> | ||||
|         <item name="android:layout_marginBottom">@dimen/card_margin</item> | ||||
|         <item name="cardElevation">3dp</item> | ||||
|         <item name="cardUseCompatPadding">true</item> | ||||
|         <item name="cardCornerRadius">2dp</item> | ||||
|         <item name="android:layout_marginLeft">2dp</item> | ||||
|         <item name="android:layout_marginRight">2dp</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="Theme.Widget.GridView"> | ||||
|   | ||||
| @@ -84,6 +84,22 @@ | ||||
|         <!-- Attributes specific for SDK 16 to SDK 20 --> | ||||
|     </style> | ||||
|  | ||||
|     <!--==============--> | ||||
|     <!-- Amoled Theme --> | ||||
|     <!--==============--> | ||||
|     <style name="Theme.Base.Amoled" parent="Theme.Base.Dark"> | ||||
|         <item name="android:colorBackground">@color/md_black_1000</item> | ||||
|  | ||||
|         <!-- Custom Attributes--> | ||||
|         <item name="selectable_list_drawable">@drawable/list_item_selector_amoled</item> | ||||
|         <item name="selectable_library_drawable">@drawable/library_item_selector_amoled</item> | ||||
|         <item name="background_card">@color/md_black_1000</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="Theme.Tachiyomi.Amoled" parent="Theme.Base.Amoled"> | ||||
|         <!-- Attributes specific for SDK 16 to SDK 20 --> | ||||
|     </style> | ||||
|  | ||||
|     <!--==============--> | ||||
|     <!-- Reader Theme --> | ||||
|     <!--==============--> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user