mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Add theme dependent background color for tabs in main
This commit is contained in:
		
							parent
							
								
									6a4d7fda0d
								
							
						
					
					
						commit
						6c01530b4e
					
				
					 3 changed files with 5 additions and 4 deletions
				
			
		|  | @ -29,9 +29,8 @@ | |||
|             android:elevation="6dp" | ||||
|             android:minHeight="?attr/actionBarSize" | ||||
|             app:tabIndicatorColor="@android:color/white" | ||||
|             android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/> | ||||
|         <!-- TODO: Neslihan android:background="?attr/mainTabBackground"--> | ||||
| 
 | ||||
|             android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" | ||||
|             android:background="?attr/mainTabBackground"/> | ||||
| 
 | ||||
|         <FrameLayout android:layout_width="match_parent" | ||||
|             android:layout_height="match_parent" | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ | |||
|     <attr name="textEnabled" format="reference"/> | ||||
| 
 | ||||
|     <attr name="contributionsListBackground" format="reference"/> | ||||
| 
 | ||||
|     <attr name="mainTabBackground" format="reference"/> | ||||
| 
 | ||||
|     <declare-styleable name="CompatTextView"> | ||||
|         <attr name="drawablePadding" format="dimension"/> | ||||
|  |  | |||
|  | @ -2,6 +2,7 @@ | |||
| 
 | ||||
|     <style name="DarkAppTheme" parent="Theme.AppCompat.NoActionBar"> | ||||
|         <item name="contributionsListBackground">@color/contributionListDarkBackground</item> | ||||
|         <item name="mainTabBackground">@color/contributionListDarkBackground</item> | ||||
|         <item name="mainBackground">@color/main_background_dark</item> | ||||
|         <item name="colorPrimary">@color/primaryColor</item> | ||||
|         <item name="colorPrimaryDark">@color/primaryDarkColor</item> | ||||
|  | @ -24,6 +25,7 @@ | |||
| 
 | ||||
|     <style name="LightAppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | ||||
|         <item name="contributionsListBackground">@color/primaryColor</item> | ||||
|         <item name="mainTabBackground">@color/primaryColor</item> | ||||
|         <item name="mainBackground">@color/main_background_light</item> | ||||
|         <item name="colorPrimaryDark">@color/primaryDarkColor</item> | ||||
|         <item name="colorAccent">@color/primaryColor</item> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 neslihanturan
						neslihanturan