mirror of
				https://codeberg.org/tom79/Fedilab.git
				synced 2025-10-20 11:20:16 +03:00 
			
		
		
		
	change colors
This commit is contained in:
		
							parent
							
								
									9f670f5e5e
								
							
						
					
					
						commit
						f29122e3ef
					
				
					 34 changed files with 83 additions and 73 deletions
				
			
		|  | @ -243,6 +243,12 @@ | ||||||
|             android:configChanges="keyboardHidden|orientation|screenSize" |             android:configChanges="keyboardHidden|orientation|screenSize" | ||||||
|             android:label="@string/action_about" |             android:label="@string/action_about" | ||||||
|             android:theme="@style/AppThemeBar" /> |             android:theme="@style/AppThemeBar" /> | ||||||
|  | 
 | ||||||
|  |         <activity | ||||||
|  |             android:name=".activities.ThemeSettingsActivity" | ||||||
|  |             android:configChanges="keyboardHidden|orientation|screenSize" | ||||||
|  |             android:label="@string/theming" | ||||||
|  |             android:theme="@style/AppThemeBar" /> | ||||||
|         <activity |         <activity | ||||||
|             android:name=".activities.admin.AdminDomainBlockActivity" |             android:name=".activities.admin.AdminDomainBlockActivity" | ||||||
|             android:configChanges="keyboardHidden|orientation|screenSize" |             android:configChanges="keyboardHidden|orientation|screenSize" | ||||||
|  |  | ||||||
|  | @ -18,20 +18,20 @@ package app.fedilab.android.activities; | ||||||
| import android.os.Bundle; | import android.os.Bundle; | ||||||
| import android.view.MenuItem; | import android.view.MenuItem; | ||||||
| 
 | 
 | ||||||
| import app.fedilab.android.databinding.ActivityAboutBinding; | import app.fedilab.android.databinding.ActivityThemeSettingsBinding; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| public class ThemeSettingsActivity extends BaseActivity { | public class ThemeSettingsActivity extends BaseActivity { | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     private ActivityAboutBinding binding; |     private ActivityThemeSettingsBinding binding; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|     protected void onCreate(Bundle savedInstanceState) { |     protected void onCreate(Bundle savedInstanceState) { | ||||||
|         super.onCreate(savedInstanceState); |         super.onCreate(savedInstanceState); | ||||||
| 
 | 
 | ||||||
|         binding = ActivityAboutBinding.inflate(getLayoutInflater()); |         binding = ActivityThemeSettingsBinding.inflate(getLayoutInflater()); | ||||||
|         setContentView(binding.getRoot()); |         setContentView(binding.getRoot()); | ||||||
| 
 | 
 | ||||||
|         if (getSupportActionBar() != null) { |         if (getSupportActionBar() != null) { | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|     android:width="24dp" |     android:width="24dp" | ||||||
|     android:height="24dp" |     android:height="24dp" | ||||||
|     android:tint="?colorAccent" |     android:tint="?colorPrimary" | ||||||
|     android:viewportWidth="24" |     android:viewportWidth="24" | ||||||
|     android:viewportHeight="24"> |     android:viewportHeight="24"> | ||||||
|     <path |     <path | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|     android:width="24dp" |     android:width="24dp" | ||||||
|     android:height="24dp" |     android:height="24dp" | ||||||
|     android:tint="?colorAccent" |     android:tint="?colorPrimary" | ||||||
|     android:viewportWidth="24" |     android:viewportWidth="24" | ||||||
|     android:viewportHeight="24"> |     android:viewportHeight="24"> | ||||||
|     <path |     <path | ||||||
|  |  | ||||||
|  | @ -2,6 +2,6 @@ | ||||||
| <shape xmlns:android="http://schemas.android.com/apk/res/android"> | <shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||||||
|     <stroke |     <stroke | ||||||
|         android:width="1dp" |         android:width="1dp" | ||||||
|         android:color="?colorAccent" /> |         android:color="?colorPrimary" /> | ||||||
|     <corners android:radius="10dp" /> |     <corners android:radius="10dp" /> | ||||||
| </shape> | </shape> | ||||||
|  |  | ||||||
|  | @ -1,8 +1,8 @@ | ||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <shape xmlns:android="http://schemas.android.com/apk/res/android"> | <shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||||||
|     <solid android:color="?colorAccent" /> |     <solid android:color="?colorPrimary" /> | ||||||
|     <stroke |     <stroke | ||||||
|         android:width="1dp" |         android:width="1dp" | ||||||
|         android:color="?colorAccent" /> |         android:color="?colorPrimary" /> | ||||||
|     <corners android:radius="10dp" /> |     <corners android:radius="10dp" /> | ||||||
| </shape> | </shape> | ||||||
|  |  | ||||||
|  | @ -2,6 +2,6 @@ | ||||||
| <shape xmlns:android="http://schemas.android.com/apk/res/android"> | <shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||||||
|     <stroke |     <stroke | ||||||
|         android:width="1dp" |         android:width="1dp" | ||||||
|         android:color="?attr/colorAccent" /> |         android:color="?colorPrimary" /> | ||||||
|     <corners android:radius="4dp" /> |     <corners android:radius="4dp" /> | ||||||
| </shape> | </shape> | ||||||
|  |  | ||||||
|  | @ -54,7 +54,7 @@ | ||||||
|             android:gravity="center_vertical" |             android:gravity="center_vertical" | ||||||
|             android:padding="5dp" |             android:padding="5dp" | ||||||
|             android:text="@string/about_developer" |             android:text="@string/about_developer" | ||||||
|             android:textColor="?colorAccent" |             android:textColor="?colorPrimary" | ||||||
|             android:textSize="16sp" |             android:textSize="16sp" | ||||||
|             android:visibility="gone" /> |             android:visibility="gone" /> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -32,7 +32,7 @@ | ||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="wrap_content" |             android:layout_height="wrap_content" | ||||||
|             android:fitsSystemWindows="true" |             android:fitsSystemWindows="true" | ||||||
|             app:contentScrim="?colorPrimaryDark" |             app:contentScrim="?colorPrimary" | ||||||
|             app:expandedTitleGravity="top" |             app:expandedTitleGravity="top" | ||||||
|             app:expandedTitleMarginEnd="64dp" |             app:expandedTitleMarginEnd="64dp" | ||||||
|             app:expandedTitleMarginStart="48dp" |             app:expandedTitleMarginStart="48dp" | ||||||
|  |  | ||||||
|  | @ -73,7 +73,6 @@ | ||||||
|         android:id="@+id/rvConstraintTools" |         android:id="@+id/rvConstraintTools" | ||||||
|         android:layout_width="match_parent" |         android:layout_width="match_parent" | ||||||
|         android:layout_height="wrap_content" |         android:layout_height="wrap_content" | ||||||
|         android:background="@color/tool_bg" |  | ||||||
|         android:orientation="horizontal" |         android:orientation="horizontal" | ||||||
|         android:paddingTop="4dp" |         android:paddingTop="4dp" | ||||||
|         android:paddingBottom="4dp" |         android:paddingBottom="4dp" | ||||||
|  | @ -87,7 +86,6 @@ | ||||||
|         android:id="@+id/rvFilterView" |         android:id="@+id/rvFilterView" | ||||||
|         android:layout_width="0dp" |         android:layout_width="0dp" | ||||||
|         android:layout_height="0dp" |         android:layout_height="0dp" | ||||||
|         android:background="@color/tool_bg" |  | ||||||
|         android:orientation="horizontal" |         android:orientation="horizontal" | ||||||
|         app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" |         app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" | ||||||
|         app:layout_constraintBottom_toBottomOf="@+id/rvConstraintTools" |         app:layout_constraintBottom_toBottomOf="@+id/rvConstraintTools" | ||||||
|  |  | ||||||
|  | @ -32,7 +32,7 @@ | ||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="wrap_content" |             android:layout_height="wrap_content" | ||||||
|             android:fitsSystemWindows="true" |             android:fitsSystemWindows="true" | ||||||
|             app:contentScrim="?colorPrimaryDark" |             app:contentScrim="?colorPrimary" | ||||||
|             app:expandedTitleGravity="top" |             app:expandedTitleGravity="top" | ||||||
|             app:expandedTitleMarginEnd="64dp" |             app:expandedTitleMarginEnd="64dp" | ||||||
|             app:expandedTitleMarginStart="48dp" |             app:expandedTitleMarginStart="48dp" | ||||||
|  |  | ||||||
							
								
								
									
										29
									
								
								app/src/main/res/layout/activity_theme_settings.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								app/src/main/res/layout/activity_theme_settings.xml
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | ||||||
|  | <?xml version="1.0" encoding="utf-8"?><!-- | ||||||
|  |     Copyright 2022 Thomas Schneider | ||||||
|  | 
 | ||||||
|  |     This file is a part of Fedilab | ||||||
|  | 
 | ||||||
|  |     This program is free software; you can redistribute it and/or modify it under the terms of the | ||||||
|  |     GNU General Public License as published by the Free Software Foundation; either version 3 of the | ||||||
|  |     License, or (at your option) any later version. | ||||||
|  | 
 | ||||||
|  |     Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even | ||||||
|  |     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||||||
|  |     Public License for more details. | ||||||
|  | 
 | ||||||
|  |     You should have received a copy of the GNU General Public License along with Fedilab; if not, | ||||||
|  |     see <http://www.gnu.org/licenses>. | ||||||
|  | --> | ||||||
|  | <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|  |     android:layout_width="match_parent" | ||||||
|  |     android:layout_height="match_parent" | ||||||
|  |     android:orientation="vertical"> | ||||||
|  | 
 | ||||||
|  |     <androidx.appcompat.widget.LinearLayoutCompat | ||||||
|  |         android:layout_width="match_parent" | ||||||
|  |         android:layout_height="wrap_content" | ||||||
|  |         android:orientation="vertical"> | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |     </androidx.appcompat.widget.LinearLayoutCompat> | ||||||
|  | </ScrollView> | ||||||
|  | @ -17,7 +17,7 @@ | ||||||
| <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" | <com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" |     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||||
|     xmlns:tools="http://schemas.android.com/tools" |     xmlns:tools="http://schemas.android.com/tools" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_marginHorizontal="6dp" |     android:layout_marginHorizontal="6dp" | ||||||
|  |  | ||||||
|  | @ -19,7 +19,7 @@ | ||||||
|     xmlns:tools="http://schemas.android.com/tools" |     xmlns:tools="http://schemas.android.com/tools" | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:layout_marginHorizontal="12dp" |     android:layout_marginHorizontal="12dp" | ||||||
|     android:layout_marginTop="12dp" |     android:layout_marginTop="12dp" | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|  |  | ||||||
|  | @ -20,7 +20,7 @@ | ||||||
|     android:id="@+id/cardview_container" |     android:id="@+id/cardview_container" | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:layout_marginHorizontal="@dimen/card_margin" |     android:layout_marginHorizontal="@dimen/card_margin" | ||||||
|     android:layout_marginTop="@dimen/card_margin" |     android:layout_marginTop="@dimen/card_margin" | ||||||
|     android:clipChildren="false" |     android:clipChildren="false" | ||||||
|  |  | ||||||
|  | @ -20,7 +20,7 @@ | ||||||
|     android:id="@+id/container" |     android:id="@+id/container" | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:layout_margin="12dp" |     android:layout_margin="12dp" | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
|  |  | ||||||
|  | @ -19,7 +19,7 @@ | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_margin="12dp" |     android:layout_margin="12dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_margin="6dp" |     android:layout_margin="6dp" | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
| 
 | 
 | ||||||
|     <androidx.appcompat.widget.LinearLayoutCompat |     <androidx.appcompat.widget.LinearLayoutCompat | ||||||
|  |  | ||||||
|  | @ -20,7 +20,7 @@ | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_margin="12dp" |     android:layout_margin="12dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -20,7 +20,7 @@ | ||||||
|     android:id="@+id/cardview_container" |     android:id="@+id/cardview_container" | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:layout_marginHorizontal="@dimen/card_margin" |     android:layout_marginHorizontal="@dimen/card_margin" | ||||||
|     android:layout_marginTop="@dimen/card_margin" |     android:layout_marginTop="@dimen/card_margin" | ||||||
|     android:clipToPadding="false" |     android:clipToPadding="false" | ||||||
|  | @ -197,7 +197,7 @@ | ||||||
|                 android:layout_gravity="center_vertical|end" |                 android:layout_gravity="center_vertical|end" | ||||||
|                 android:layout_marginStart="6dp" |                 android:layout_marginStart="6dp" | ||||||
|                 android:layout_marginEnd="6dp" |                 android:layout_marginEnd="6dp" | ||||||
|                 android:tint="?colorAccent" |                 android:tint="?colorPrimary" | ||||||
|                 android:visibility="gone" /> |                 android:visibility="gone" /> | ||||||
| 
 | 
 | ||||||
|         </androidx.appcompat.widget.LinearLayoutCompat> |         </androidx.appcompat.widget.LinearLayoutCompat> | ||||||
|  | @ -440,7 +440,7 @@ | ||||||
|             android:alpha="0.8" |             android:alpha="0.8" | ||||||
|             android:gravity="center_vertical" |             android:gravity="center_vertical" | ||||||
|             android:padding="6dp" |             android:padding="6dp" | ||||||
|             android:textColor="?colorAccent" |             android:textColor="?colorPrimary" | ||||||
|             android:visibility="gone" |             android:visibility="gone" | ||||||
|             tools:text="1 January 2021, 12:00" |             tools:text="1 January 2021, 12:00" | ||||||
|             tools:visibility="visible" /> |             tools:visibility="visible" /> | ||||||
|  | @ -455,7 +455,7 @@ | ||||||
|             android:alpha="0.8" |             android:alpha="0.8" | ||||||
|             android:gravity="center_vertical" |             android:gravity="center_vertical" | ||||||
|             android:padding="6dp" |             android:padding="6dp" | ||||||
|             android:textColor="?colorAccent" |             android:textColor="?colorPrimary" | ||||||
|             android:visibility="gone" |             android:visibility="gone" | ||||||
|             tools:text="Fedilab" |             tools:text="Fedilab" | ||||||
|             tools:visibility="visible" /> |             tools:visibility="visible" /> | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:clipChildren="false" |     android:clipChildren="false" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:clipToPadding="false" |     android:clipToPadding="false" | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_margin="12dp" |     android:layout_margin="12dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -23,7 +23,7 @@ | ||||||
|     android:layout_marginHorizontal="@dimen/card_margin" |     android:layout_marginHorizontal="@dimen/card_margin" | ||||||
|     android:layout_marginTop="@dimen/card_margin" |     android:layout_marginTop="@dimen/card_margin" | ||||||
|     android:clipChildren="false" |     android:clipChildren="false" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:clipToPadding="false" |     android:clipToPadding="false" | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
|  |  | ||||||
|  | @ -23,7 +23,7 @@ | ||||||
|     android:layout_marginHorizontal="@dimen/card_margin" |     android:layout_marginHorizontal="@dimen/card_margin" | ||||||
|     android:layout_marginTop="@dimen/card_margin" |     android:layout_marginTop="@dimen/card_margin" | ||||||
|     android:clipChildren="false" |     android:clipChildren="false" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:clipToPadding="false" |     android:clipToPadding="false" | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ | ||||||
|     android:layout_marginTop="12dp" |     android:layout_marginTop="12dp" | ||||||
|     android:clipChildren="false" |     android:clipChildren="false" | ||||||
|     android:clipToPadding="false" |     android:clipToPadding="false" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_margin="12dp" |     android:layout_margin="12dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -22,7 +22,7 @@ | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_marginHorizontal="12dp" |     android:layout_marginHorizontal="12dp" | ||||||
|     android:layout_marginTop="12dp" |     android:layout_marginTop="12dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     android:clipChildren="false" |     android:clipChildren="false" | ||||||
|     android:clipToPadding="false" |     android:clipToPadding="false" | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_marginHorizontal="6dp" |     android:layout_marginHorizontal="6dp" | ||||||
|     android:layout_marginTop="6dp" |     android:layout_marginTop="6dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -19,7 +19,7 @@ | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_margin="12dp" |     android:layout_margin="12dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:cardElevation="5dp" |     app:cardElevation="5dp" | ||||||
|     app:strokeWidth="0dp"> |     app:strokeWidth="0dp"> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -64,7 +64,7 @@ | ||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="wrap_content" |             android:layout_height="wrap_content" | ||||||
|             android:text="@string/filter_context_explanations" |             android:text="@string/filter_context_explanations" | ||||||
|             android:textColor="?colorAccent" |             android:textColor="?colorPrimary" | ||||||
|             android:textSize="12sp" /> |             android:textSize="12sp" /> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -139,7 +139,7 @@ | ||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="wrap_content" |             android:layout_height="wrap_content" | ||||||
|             android:text="@string/filter_action_explanations" |             android:text="@string/filter_action_explanations" | ||||||
|             android:textColor="?colorAccent" |             android:textColor="?colorPrimary" | ||||||
|             android:textSize="12sp" /> |             android:textSize="12sp" /> | ||||||
| 
 | 
 | ||||||
|         <RadioGroup |         <RadioGroup | ||||||
|  |  | ||||||
|  | @ -39,9 +39,9 @@ | ||||||
|         android:layout_marginBottom="10dp" |         android:layout_marginBottom="10dp" | ||||||
|         android:drawableEnd="@drawable/ic_baseline_navigate_next_24" |         android:drawableEnd="@drawable/ic_baseline_navigate_next_24" | ||||||
|         android:text="@string/open_other_app" |         android:text="@string/open_other_app" | ||||||
|         android:textColor="?colorAccent" |         android:textColor="?colorPrimary" | ||||||
|         android:textSize="16sp" |         android:textSize="16sp" | ||||||
|         app:drawableTint="?colorAccent" /> |         app:drawableTint="?colorPrimary" /> | ||||||
| 
 | 
 | ||||||
|     <androidx.appcompat.widget.AppCompatTextView |     <androidx.appcompat.widget.AppCompatTextView | ||||||
|         android:id="@+id/copy_link" |         android:id="@+id/copy_link" | ||||||
|  | @ -51,9 +51,9 @@ | ||||||
|         android:layout_marginBottom="10dp" |         android:layout_marginBottom="10dp" | ||||||
|         android:drawableEnd="@drawable/ic_baseline_navigate_next_24" |         android:drawableEnd="@drawable/ic_baseline_navigate_next_24" | ||||||
|         android:text="@string/copy_link" |         android:text="@string/copy_link" | ||||||
|         android:textColor="?colorAccent" |         android:textColor="?colorPrimary" | ||||||
|         android:textSize="16sp" |         android:textSize="16sp" | ||||||
|         app:drawableTint="?colorAccent" /> |         app:drawableTint="?colorPrimary" /> | ||||||
| 
 | 
 | ||||||
|     <androidx.appcompat.widget.AppCompatTextView |     <androidx.appcompat.widget.AppCompatTextView | ||||||
|         android:id="@+id/check_redirect" |         android:id="@+id/check_redirect" | ||||||
|  | @ -63,7 +63,7 @@ | ||||||
|         android:layout_marginBottom="10dp" |         android:layout_marginBottom="10dp" | ||||||
|         android:drawableEnd="@drawable/ic_baseline_navigate_next_24" |         android:drawableEnd="@drawable/ic_baseline_navigate_next_24" | ||||||
|         android:text="@string/check_redirect" |         android:text="@string/check_redirect" | ||||||
|         android:textColor="?colorAccent" |         android:textColor="?colorPrimary" | ||||||
|         android:textSize="16sp" |         android:textSize="16sp" | ||||||
|         app:drawableTint="?colorAccent" /> |         app:drawableTint="?colorPrimary" /> | ||||||
| </LinearLayout> | </LinearLayout> | ||||||
|  |  | ||||||
|  | @ -124,7 +124,7 @@ | ||||||
|                         android:layout_marginTop="6dp" |                         android:layout_marginTop="6dp" | ||||||
|                         android:text="@string/show_content" |                         android:text="@string/show_content" | ||||||
|                         android:textAppearance="@style/TextAppearance.AppCompat.Body2" |                         android:textAppearance="@style/TextAppearance.AppCompat.Body2" | ||||||
|                         android:textColor="?colorAccent" /> |                         android:textColor="?colorPrimary" /> | ||||||
| 
 | 
 | ||||||
|                     <androidx.appcompat.widget.AppCompatTextView |                     <androidx.appcompat.widget.AppCompatTextView | ||||||
|                         android:id="@+id/status_content" |                         android:id="@+id/status_content" | ||||||
|  | @ -246,7 +246,7 @@ | ||||||
|                                         android:layout_height="wrap_content" |                                         android:layout_height="wrap_content" | ||||||
|                                         android:maxLines="1" |                                         android:maxLines="1" | ||||||
|                                         android:text="Maecenas sollicitudin, eros quis interdum posuere, quam lorem tempus dui." |                                         android:text="Maecenas sollicitudin, eros quis interdum posuere, quam lorem tempus dui." | ||||||
|                                         android:textColor="?colorAccent" |                                         android:textColor="?colorPrimary" | ||||||
|                                         tools:ignore="HardcodedText" /> |                                         tools:ignore="HardcodedText" /> | ||||||
| 
 | 
 | ||||||
|                                     <androidx.appcompat.widget.AppCompatTextView |                                     <androidx.appcompat.widget.AppCompatTextView | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_marginVertical="6dp" |     android:layout_marginVertical="6dp" | ||||||
|     android:layout_marginStart="6dp" |     android:layout_marginStart="6dp" | ||||||
|     app:cardBackgroundColor="?carViewBackground" | 
 | ||||||
|     app:cardElevation="2dp"> |     app:cardElevation="2dp"> | ||||||
| 
 | 
 | ||||||
|     <androidx.constraintlayout.widget.ConstraintLayout |     <androidx.constraintlayout.widget.ConstraintLayout | ||||||
|  |  | ||||||
|  | @ -1,25 +1,19 @@ | ||||||
| <resources> | <resources> | ||||||
|     <attr name="linkColor" type="color" /> | 
 | ||||||
|     <attr name="carViewBackground" type="color" /> |  | ||||||
| 
 | 
 | ||||||
|     <style name="AppTheme" parent="Theme.Material3.Light.NoActionBar"> |     <style name="AppTheme" parent="Theme.Material3.Light.NoActionBar"> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         <item name="carViewBackground">@color/white</item> |  | ||||||
|         <item name="linkColor">@color/dark_link_toot</item> |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|         <item name="colorPrimary">@color/mastodon_accent_dark</item> |         <item name="colorPrimary">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorPrimaryVariant">@color/mastodon_accent_dark</item> |         <item name="colorPrimaryVariant">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorOnPrimary">@color/white</item> |         <item name="colorOnPrimary">@color/white</item> | ||||||
| 
 |  | ||||||
|         <item name="colorSecondary">@color/mastodon_accent_dark</item> |         <item name="colorSecondary">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorSecondaryVariant">@color/mastodon_accent_dark</item> |         <item name="colorSecondaryVariant">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorOnSecondary">@color/white</item> |         <item name="colorOnSecondary">@color/white</item> | ||||||
| 
 |  | ||||||
|         <item name="colorError">@color/red_900</item> |         <item name="colorError">@color/red_900</item> | ||||||
|         <item name="windowNoTitle">true</item> |  | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  |         <item name="windowNoTitle">true</item> | ||||||
|         <!-- specify shared element transitions --> |         <!-- specify shared element transitions --> | ||||||
|         <item name="android:windowSharedElementEnterTransition"> |         <item name="android:windowSharedElementEnterTransition"> | ||||||
|             @transition/change_image_transform |             @transition/change_image_transform | ||||||
|  | @ -33,19 +27,16 @@ | ||||||
|     <style name="AppThemeDark" parent="Theme.Material3.Dark.NoActionBar"> |     <style name="AppThemeDark" parent="Theme.Material3.Dark.NoActionBar"> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         <item name="carViewBackground">@color/mastodon_dark_background</item> |  | ||||||
|         <item name="linkColor">@color/dark_link_toot</item> |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|         <item name="colorPrimary">@color/mastodon_accent_dark</item> |         <item name="colorPrimary">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorPrimaryVariant">@color/mastodon_accent_dark</item> |         <item name="colorPrimaryVariant">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorOnPrimary">@color/white</item> |         <item name="colorOnPrimary">@color/white</item> | ||||||
| 
 |  | ||||||
|         <item name="colorSecondary">@color/mastodon_accent_dark</item> |         <item name="colorSecondary">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorSecondaryVariant">@color/mastodon_accent_dark</item> |         <item name="colorSecondaryVariant">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorOnSecondary">@color/white</item> |         <item name="colorOnSecondary">@color/white</item> | ||||||
| 
 |  | ||||||
|         <item name="colorError">@color/red_900</item> |         <item name="colorError">@color/red_900</item> | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|         <item name="windowNoTitle">true</item> |         <item name="windowNoTitle">true</item> | ||||||
|         <!-- specify enter and exit transitions --> |         <!-- specify enter and exit transitions --> | ||||||
|         <item name="android:windowEnterTransition">@android:transition/explode</item> |         <item name="android:windowEnterTransition">@android:transition/explode</item> | ||||||
|  | @ -62,49 +53,35 @@ | ||||||
| 
 | 
 | ||||||
|     <style name="AppThemeBar" parent="Theme.Material3.Light"> |     <style name="AppThemeBar" parent="Theme.Material3.Light"> | ||||||
| 
 | 
 | ||||||
|         <item name="carViewBackground">@color/white</item> |  | ||||||
|         <item name="linkColor">@color/dark_link_toot</item> |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|         <item name="colorPrimary">@color/mastodon_accent_dark</item> |         <item name="colorPrimary">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorPrimaryVariant">@color/mastodon_accent_dark</item> |         <item name="colorPrimaryVariant">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorOnPrimary">@color/white</item> |         <item name="colorOnPrimary">@color/white</item> | ||||||
| 
 |  | ||||||
|         <item name="colorSecondary">@color/mastodon_accent_dark</item> |         <item name="colorSecondary">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorSecondaryVariant">@color/mastodon_accent_dark</item> |         <item name="colorSecondaryVariant">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorOnSecondary">@color/white</item> |         <item name="colorOnSecondary">@color/white</item> | ||||||
| 
 |  | ||||||
|         <item name="colorError">@color/red_900</item> |         <item name="colorError">@color/red_900</item> | ||||||
| 
 | 
 | ||||||
|     </style> |     </style> | ||||||
| 
 | 
 | ||||||
|     <style name="AppThemeBarDark" parent="Theme.Material3.Dark"> |     <style name="AppThemeBarDark" parent="Theme.Material3.Dark"> | ||||||
| 
 | 
 | ||||||
|         <item name="carViewBackground">@color/mastodon_dark_background</item> |  | ||||||
|         <item name="linkColor">@color/dark_link_toot</item> |  | ||||||
| 
 | 
 | ||||||
|         <item name="colorPrimary">@color/mastodon_accent_dark</item> |         <item name="colorPrimary">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorPrimaryVariant">@color/mastodon_accent_dark</item> |         <item name="colorPrimaryVariant">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorOnPrimary">@color/white</item> |         <item name="colorOnPrimary">@color/white</item> | ||||||
| 
 |  | ||||||
|         <item name="colorSecondary">@color/mastodon_accent_dark</item> |         <item name="colorSecondary">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorSecondaryVariant">@color/mastodon_accent_dark</item> |         <item name="colorSecondaryVariant">@color/mastodon_accent_dark</item> | ||||||
|         <item name="colorOnSecondary">@color/white</item> |         <item name="colorOnSecondary">@color/white</item> | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|         <item name="colorError">@color/red_900</item> |         <item name="colorError">@color/red_900</item> | ||||||
| 
 | 
 | ||||||
|     </style> |     </style> | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|     <style name="TransparentDark" parent="Theme.Material3.Dark"> |     <style name="TransparentDark" parent="Theme.Material3.Dark"> | ||||||
|         <item name="android:colorBackgroundCacheHint">@null</item> |         <item name="android:colorBackgroundCacheHint">@null</item> | ||||||
|         <item name="android:windowContentOverlay">@null</item> |         <item name="android:windowContentOverlay">@null</item> | ||||||
|         <item name="android:windowIsFloating">false</item> |         <item name="android:windowIsFloating">false</item> | ||||||
|         <item name="android:windowIsTranslucent">true</item> |         <item name="android:windowIsTranslucent">true</item> | ||||||
|         <item name="android:windowNoTitle">true</item> |         <item name="android:windowNoTitle">true</item> | ||||||
|         <item name="android:windowBackground">@color/black</item> |  | ||||||
|     </style> |     </style> | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| </resources> | </resources> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue