migrate to material 3 #70
| @ -10,7 +10,7 @@ | ||||
|         android:label="@string/app_name" | ||||
|         android:roundIcon="@mipmap/ic_launcher_round" | ||||
|         android:supportsRtl="true" | ||||
|         android:theme="@style/AppTheme.Dark"> | ||||
|         android:theme="@style/AppTheme"> | ||||
|         <activity | ||||
|             android:exported="true" | ||||
|             android:name="org.mosad.teapod.ui.activity.main.MainActivity" | ||||
|  | ||||
| @ -28,6 +28,7 @@ import android.util.Log | ||||
| import android.view.MenuItem | ||||
| import androidx.activity.addCallback | ||||
| import androidx.appcompat.app.AppCompatActivity | ||||
| import androidx.appcompat.app.AppCompatDelegate | ||||
| import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen | ||||
| import androidx.fragment.app.Fragment | ||||
| import androidx.fragment.app.commit | ||||
| @ -69,7 +70,19 @@ class MainActivity : AppCompatActivity(), NavigationBarView.OnItemSelectedListen | ||||
|         super.onCreate(savedInstanceState) | ||||
|  | ||||
|         load() // start the initial loading | ||||
|         theme.applyStyle(getThemeResource(), true) | ||||
|  | ||||
|         // theming | ||||
|         /** | ||||
|          * TODO button should be white (on dark) or black (on light) | ||||
|          */ | ||||
|  | ||||
|         // theme.applyStyle(R.style.AppTheme_DayNight, true) // TODO I think this must be removed for system settings to work | ||||
|         val mode = when (Preferences.theme) { | ||||
|             DataTypes.Theme.LIGHT -> AppCompatDelegate.MODE_NIGHT_NO | ||||
|             DataTypes.Theme.DARK -> AppCompatDelegate.MODE_NIGHT_YES | ||||
|             else -> AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM | ||||
|         } | ||||
|         AppCompatDelegate.setDefaultNightMode(mode) | ||||
|  | ||||
|         binding = ActivityMainBinding.inflate(layoutInflater) | ||||
|         binding.navView.setOnItemSelectedListener(this) | ||||
| @ -122,12 +135,12 @@ class MainActivity : AppCompatActivity(), NavigationBarView.OnItemSelectedListen | ||||
|         return ret | ||||
|     } | ||||
|  | ||||
|     private fun getThemeResource(): Int { | ||||
|         return when (Preferences.theme) { | ||||
|             DataTypes.Theme.LIGHT -> R.style.AppTheme_Light | ||||
|             else -> R.style.AppTheme_Dark | ||||
|         } | ||||
|     } | ||||
| //    private fun getThemeResource(): Int { | ||||
| //        return when (Preferences.theme) { | ||||
| //            DataTypes.Theme.LIGHT -> R.style.AppTheme_Light | ||||
| //            else -> R.style.AppTheme_Dark | ||||
| //        } | ||||
| //    } | ||||
|  | ||||
|     /** | ||||
|      * initial loading and login are run in parallel, as initial loading doesn't require | ||||
|  | ||||
| @ -10,6 +10,7 @@ class DataTypes { | ||||
|     } | ||||
|  | ||||
|     enum class Theme(val str: String) { | ||||
|         SYSTEM("System"), | ||||
|         LIGHT("Light"), | ||||
|         DARK("Dark") | ||||
|     } | ||||
|  | ||||
| @ -1,6 +1,13 @@ | ||||
| <vector android:height="24dp" android:tint="#FFFFFF" | ||||
|     android:viewportHeight="24" android:viewportWidth="24" | ||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <path android:fillColor="@android:color/white" android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z"/> | ||||
|     <path android:fillColor="@android:color/white" android:pathData="M12.5,7H11v6l5.25,3.15 0.75,-1.23 -4.5,-2.67z"/> | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:width="24dp" | ||||
|     android:height="24dp" | ||||
|     android:viewportWidth="24" | ||||
|     android:viewportHeight="24" | ||||
|     android:tint="?attr/colorControlNormal"> | ||||
|     <path | ||||
|         android:fillColor="@android:color/white" | ||||
|         android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z"/> | ||||
|     <path | ||||
|         android:fillColor="@android:color/white" | ||||
|         android:pathData="M12.5,7H11v6l5.25,3.15 0.75,-1.23 -4.5,-2.67z" /> | ||||
| </vector> | ||||
|  | ||||
| @ -1,5 +1,10 @@ | ||||
| <vector android:height="24dp" android:tint="#FFFFFF" | ||||
|     android:viewportHeight="24" android:viewportWidth="24" | ||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <path android:fillColor="@android:color/white" android:pathData="M9.4,16.6L4.8,12l4.6,-4.6L8,6l-6,6 6,6 1.4,-1.4zM14.6,16.6l4.6,-4.6 -4.6,-4.6L16,6l6,6 -6,6 -1.4,-1.4z"/> | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:width="24dp" | ||||
|     android:height="24dp" | ||||
|     android:viewportWidth="24" | ||||
|     android:viewportHeight="24" | ||||
|     android:tint="?attr/colorControlNormal"> | ||||
|     <path | ||||
|         android:fillColor="@android:color/white" | ||||
|         android:pathData="M9.4,16.6L4.8,12l4.6,-4.6L8,6l-6,6 6,6 1.4,-1.4zM14.6,16.6l4.6,-4.6 -4.6,-4.6L16,6l6,6 -6,6 -1.4,-1.4z"/> | ||||
| </vector> | ||||
|  | ||||
| @ -1,5 +1,10 @@ | ||||
| <vector android:height="24dp" android:tint="#FFFFFF" | ||||
|     android:viewportHeight="24" android:viewportWidth="24" | ||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <path android:fillColor="@android:color/white" android:pathData="M14,2L6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6zM16,18L8,18v-2h8v2zM16,14L8,14v-2h8v2zM13,9L13,3.5L18.5,9L13,9z"/> | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:width="24dp" | ||||
|     android:height="24dp" | ||||
|     android:viewportWidth="24" | ||||
|     android:viewportHeight="24" | ||||
|     android:tint="?attr/colorControlNormal"> | ||||
|     <path | ||||
|         android:fillColor="@android:color/white" | ||||
|         android:pathData="M14,2L6,2c-1.1,0 -1.99,0.9 -1.99,2L4,20c0,1.1 0.89,2 1.99,2L18,22c1.1,0 2,-0.9 2,-2L20,8l-6,-6zM16,18L8,18v-2h8v2zM16,14L8,14v-2h8v2zM13,9L13,3.5L18.5,9L13,9z"/> | ||||
| </vector> | ||||
|  | ||||
| @ -1,5 +1,10 @@ | ||||
| <vector android:height="24dp" android:tint="#FFFFFF" | ||||
|     android:viewportHeight="24" android:viewportWidth="24" | ||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <path android:fillColor="@android:color/white" android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM18.92,8h-2.95c-0.32,-1.25 -0.78,-2.45 -1.38,-3.56 1.84,0.63 3.37,1.91 4.33,3.56zM12,4.04c0.83,1.2 1.48,2.53 1.91,3.96h-3.82c0.43,-1.43 1.08,-2.76 1.91,-3.96zM4.26,14C4.1,13.36 4,12.69 4,12s0.1,-1.36 0.26,-2h3.38c-0.08,0.66 -0.14,1.32 -0.14,2 0,0.68 0.06,1.34 0.14,2L4.26,14zM5.08,16h2.95c0.32,1.25 0.78,2.45 1.38,3.56 -1.84,-0.63 -3.37,-1.9 -4.33,-3.56zM8.03,8L5.08,8c0.96,-1.66 2.49,-2.93 4.33,-3.56C8.81,5.55 8.35,6.75 8.03,8zM12,19.96c-0.83,-1.2 -1.48,-2.53 -1.91,-3.96h3.82c-0.43,1.43 -1.08,2.76 -1.91,3.96zM14.34,14L9.66,14c-0.09,-0.66 -0.16,-1.32 -0.16,-2 0,-0.68 0.07,-1.35 0.16,-2h4.68c0.09,0.65 0.16,1.32 0.16,2 0,0.68 -0.07,1.34 -0.16,2zM14.59,19.56c0.6,-1.11 1.06,-2.31 1.38,-3.56h2.95c-0.96,1.65 -2.49,2.93 -4.33,3.56zM16.36,14c0.08,-0.66 0.14,-1.32 0.14,-2 0,-0.68 -0.06,-1.34 -0.14,-2h3.38c0.16,0.64 0.26,1.31 0.26,2s-0.1,1.36 -0.26,2h-3.38z"/> | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:width="24dp" | ||||
|     android:height="24dp" | ||||
|     android:viewportWidth="24" | ||||
|     android:viewportHeight="24" | ||||
|     android:tint="?attr/colorControlNormal"> | ||||
|     <path | ||||
|         android:fillColor="@android:color/white" | ||||
|         android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM18.92,8h-2.95c-0.32,-1.25 -0.78,-2.45 -1.38,-3.56 1.84,0.63 3.37,1.91 4.33,3.56zM12,4.04c0.83,1.2 1.48,2.53 1.91,3.96h-3.82c0.43,-1.43 1.08,-2.76 1.91,-3.96zM4.26,14C4.1,13.36 4,12.69 4,12s0.1,-1.36 0.26,-2h3.38c-0.08,0.66 -0.14,1.32 -0.14,2 0,0.68 0.06,1.34 0.14,2L4.26,14zM5.08,16h2.95c0.32,1.25 0.78,2.45 1.38,3.56 -1.84,-0.63 -3.37,-1.9 -4.33,-3.56zM8.03,8L5.08,8c0.96,-1.66 2.49,-2.93 4.33,-3.56C8.81,5.55 8.35,6.75 8.03,8zM12,19.96c-0.83,-1.2 -1.48,-2.53 -1.91,-3.96h3.82c-0.43,1.43 -1.08,2.76 -1.91,3.96zM14.34,14L9.66,14c-0.09,-0.66 -0.16,-1.32 -0.16,-2 0,-0.68 0.07,-1.35 0.16,-2h4.68c0.09,0.65 0.16,1.32 0.16,2 0,0.68 -0.07,1.34 -0.16,2zM14.59,19.56c0.6,-1.11 1.06,-2.31 1.38,-3.56h2.95c-0.96,1.65 -2.49,2.93 -4.33,3.56zM16.36,14c0.08,-0.66 0.14,-1.32 0.14,-2 0,-0.68 -0.06,-1.34 -0.14,-2h3.38c0.16,0.64 0.26,1.31 0.26,2s-0.1,1.36 -0.26,2h-3.38z"/> | ||||
| </vector> | ||||
|  | ||||
| @ -1,5 +1,8 @@ | ||||
| <vector android:height="24dp" android:tint="#FFFFFF" | ||||
|     android:viewportHeight="24" android:viewportWidth="24" | ||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:width="24dp" | ||||
|     android:height="24dp" | ||||
|     android:viewportWidth="24" | ||||
|     android:viewportHeight="24" | ||||
|     android:tint="?attr/colorControlNormal"> | ||||
|     <path android:fillColor="@android:color/white" android:pathData="M16,11c1.66,0 2.99,-1.34 2.99,-3S17.66,5 16,5c-1.66,0 -3,1.34 -3,3s1.34,3 3,3zM8,11c1.66,0 2.99,-1.34 2.99,-3S9.66,5 8,5C6.34,5 5,6.34 5,8s1.34,3 3,3zM8,13c-2.33,0 -7,1.17 -7,3.5L1,19h14v-2.5c0,-2.33 -4.67,-3.5 -7,-3.5zM16,13c-0.29,0 -0.62,0.02 -0.97,0.05 1.16,0.84 1.97,1.97 1.97,3.45L17,19h6v-2.5c0,-2.33 -4.67,-3.5 -7,-3.5z"/> | ||||
| </vector> | ||||
|  | ||||
| @ -1,5 +1,10 @@ | ||||
| <vector android:height="24dp" android:tint="#FFFFFF" | ||||
|     android:viewportHeight="24" android:viewportWidth="24" | ||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <path android:fillColor="@android:color/white" android:pathData="M2.53,19.65l1.34,0.56v-9.03l-2.43,5.86c-0.41,1.02 0.08,2.19 1.09,2.61zM22.03,15.95L17.07,3.98c-0.31,-0.75 -1.04,-1.21 -1.81,-1.23 -0.26,0 -0.53,0.04 -0.79,0.15L7.1,5.95c-0.75,0.31 -1.21,1.03 -1.23,1.8 -0.01,0.27 0.04,0.54 0.15,0.8l4.96,11.97c0.31,0.76 1.05,1.22 1.83,1.23 0.26,0 0.52,-0.05 0.77,-0.15l7.36,-3.05c1.02,-0.42 1.51,-1.59 1.09,-2.6zM7.88,8.75c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM5.88,19.75c0,1.1 0.9,2 2,2h1.45l-3.45,-8.34v6.34z"/> | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:width="24dp" | ||||
|     android:height="24dp" | ||||
|     android:viewportWidth="24" | ||||
|     android:viewportHeight="24" | ||||
|     android:tint="?attr/colorControlNormal"> | ||||
|     <path | ||||
|         android:fillColor="@android:color/white" | ||||
|         android:pathData="M2.53,19.65l1.34,0.56v-9.03l-2.43,5.86c-0.41,1.02 0.08,2.19 1.09,2.61zM22.03,15.95L17.07,3.98c-0.31,-0.75 -1.04,-1.21 -1.81,-1.23 -0.26,0 -0.53,0.04 -0.79,0.15L7.1,5.95c-0.75,0.31 -1.21,1.03 -1.23,1.8 -0.01,0.27 0.04,0.54 0.15,0.8l4.96,11.97c0.31,0.76 1.05,1.22 1.83,1.23 0.26,0 0.52,-0.05 0.77,-0.15l7.36,-3.05c1.02,-0.42 1.51,-1.59 1.09,-2.6zM7.88,8.75c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM5.88,19.75c0,1.1 0.9,2 2,2h1.45l-3.45,-8.34v6.34z"/> | ||||
| </vector> | ||||
|  | ||||
| @ -1,9 +1,9 @@ | ||||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:width="24dp" | ||||
|     android:height="24dp" | ||||
|     android:tint="#FFFFFF" | ||||
|     android:viewportWidth="24" | ||||
|     android:viewportHeight="24"> | ||||
|     android:viewportHeight="24" | ||||
|     android:tint="?attr/colorControlNormal"> | ||||
|     <path | ||||
|         android:fillColor="@android:color/white" | ||||
|         android:pathData="M11,7h2v2h-2zM11,11h2v6h-2zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8z" /> | ||||
|  | ||||
| @ -9,8 +9,6 @@ | ||||
|         android:id="@+id/nav_view" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:background="?themeSecondary" | ||||
|         app:itemIconTint="@color/bottom_nav_item_tint" | ||||
|         app:layout_constraintBottom_toBottomOf="parent" | ||||
|         app:layout_constraintLeft_toLeftOf="parent" | ||||
|         app:layout_constraintRight_toRightOf="parent" | ||||
|  | ||||
| @ -1,11 +1,8 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <androidx.core.widget.NestedScrollView | ||||
|     xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
| <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     android:background="?themePrimary" | ||||
|     tools:context=".ui.activity.main.fragments.AboutFragment"> | ||||
|  | ||||
|     <LinearLayout | ||||
| @ -67,8 +64,7 @@ | ||||
|                     android:minHeight="48dp" | ||||
|                     android:padding="9dp" | ||||
|                     android:scaleType="fitXY" | ||||
|                     android:src="@drawable/ic_outline_info_24" | ||||
|                     app:tint="?iconColor" /> | ||||
|                     android:src="@drawable/ic_outline_info_24" /> | ||||
|  | ||||
|                 <LinearLayout | ||||
|                     android:layout_width="match_parent" | ||||
| @ -89,8 +85,7 @@ | ||||
|                         android:layout_width="match_parent" | ||||
|                         android:layout_height="wrap_content" | ||||
|                         android:layout_weight="1" | ||||
|                         android:text="@string/version_desc" | ||||
|                         android:textColor="?textSecondary" /> | ||||
|                         android:text="@string/version_desc" /> | ||||
|                 </LinearLayout> | ||||
|             </LinearLayout> | ||||
|  | ||||
| @ -112,8 +107,7 @@ | ||||
|                     android:minHeight="48dp" | ||||
|                     android:padding="9dp" | ||||
|                     android:scaleType="fitXY" | ||||
|                     android:src="@drawable/ic_baseline_people_24" | ||||
|                     app:tint="?iconColor" /> | ||||
|                     android:src="@drawable/ic_baseline_people_24" /> | ||||
|  | ||||
|                 <LinearLayout | ||||
|                     android:layout_width="match_parent" | ||||
| @ -134,8 +128,7 @@ | ||||
|                         android:layout_width="match_parent" | ||||
|                         android:layout_height="wrap_content" | ||||
|                         android:layout_weight="1" | ||||
|                         android:text="@string/author_desc" | ||||
|                         android:textColor="?textSecondary" /> | ||||
|                         android:text="@string/author_desc" /> | ||||
|                 </LinearLayout> | ||||
|             </LinearLayout> | ||||
|  | ||||
| @ -157,8 +150,7 @@ | ||||
|                     android:minHeight="48dp" | ||||
|                     android:padding="9dp" | ||||
|                     android:scaleType="fitXY" | ||||
|                     android:src="@drawable/ic_baseline_code_24" | ||||
|                     app:tint="?iconColor" /> | ||||
|                     android:src="@drawable/ic_baseline_code_24" /> | ||||
|  | ||||
|                 <LinearLayout | ||||
|                     android:layout_width="match_parent" | ||||
| @ -179,8 +171,7 @@ | ||||
|                         android:layout_width="match_parent" | ||||
|                         android:layout_height="wrap_content" | ||||
|                         android:layout_weight="1" | ||||
|                         android:text="@string/teapod_repo" | ||||
|                         android:textColor="?textSecondary" /> | ||||
|                         android:text="@string/teapod_repo" /> | ||||
|                 </LinearLayout> | ||||
|             </LinearLayout> | ||||
|  | ||||
| @ -202,8 +193,7 @@ | ||||
|                     android:minHeight="48dp" | ||||
|                     android:padding="9dp" | ||||
|                     android:scaleType="fitXY" | ||||
|                     android:src="@drawable/ic_baseline_description_24" | ||||
|                     app:tint="?iconColor" /> | ||||
|                     android:src="@drawable/ic_baseline_description_24" /> | ||||
|  | ||||
|                 <LinearLayout | ||||
|                     android:layout_width="match_parent" | ||||
| @ -224,8 +214,7 @@ | ||||
|                         android:layout_width="match_parent" | ||||
|                         android:layout_height="wrap_content" | ||||
|                         android:layout_weight="1" | ||||
|                         android:text="@string/license_desc" | ||||
|                         android:textColor="?textSecondary" /> | ||||
|                         android:text="@string/license_desc" /> | ||||
|                 </LinearLayout> | ||||
|             </LinearLayout> | ||||
|  | ||||
| @ -267,8 +256,7 @@ | ||||
|             android:layout_marginEnd="7dp" | ||||
|             android:paddingBottom="5dp" | ||||
|             android:text="@string/tmdb_notice" | ||||
|             android:textAlignment="center" | ||||
|             android:textColor="?textSecondary" /> | ||||
|             android:textAlignment="center" /> | ||||
|  | ||||
|     </LinearLayout> | ||||
| </androidx.core.widget.NestedScrollView> | ||||
| @ -4,7 +4,6 @@ | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     android:background="?themePrimary" | ||||
|     tools:context=".ui.activity.main.fragments.AccountFragment"> | ||||
|  | ||||
|     <ScrollView | ||||
| @ -23,7 +22,6 @@ | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:layout_marginTop="12dp" | ||||
|                 android:background="?themeSecondary" | ||||
|                 android:elevation="5dp" | ||||
|                 android:orientation="vertical"> | ||||
|  | ||||
| @ -34,7 +32,7 @@ | ||||
|                     android:paddingStart="7dp" | ||||
|                     android:paddingEnd="7dp" | ||||
|                     android:text="@string/account" | ||||
|                     android:textSize="16sp" | ||||
|                     android:textAppearance="@style/TextAppearance.Material3.TitleMedium" | ||||
|                     android:textStyle="bold" /> | ||||
|  | ||||
|                 <LinearLayout | ||||
| @ -55,8 +53,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         android:src="@drawable/ic_baseline_account_box_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         android:src="@drawable/ic_baseline_account_box_24" /> | ||||
|  | ||||
|                     <LinearLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -69,15 +66,14 @@ | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/account_login_ex" | ||||
|                             android:textSize="16sp" /> | ||||
|                             android:textAppearance="@style/TextAppearance.Material3.BodyLarge" /> | ||||
|  | ||||
|                         <TextView | ||||
|                             android:id="@+id/text_account_login_desc" | ||||
|                             android:layout_width="match_parent" | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/account_login_desc" | ||||
|                             android:textColor="?textSecondary" /> | ||||
|                             android:text="@string/account_login_desc" /> | ||||
|                     </LinearLayout> | ||||
|                 </LinearLayout> | ||||
|  | ||||
| @ -99,8 +95,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         android:src="@drawable/ic_baseline_access_time_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         android:src="@drawable/ic_baseline_access_time_24" /> | ||||
|  | ||||
|                     <LinearLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -113,15 +108,14 @@ | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/loading" | ||||
|                             android:textSize="16sp" /> | ||||
|                             android:textAppearance="@style/TextAppearance.Material3.BodyLarge" /> | ||||
|  | ||||
|                         <TextView | ||||
|                             android:id="@+id/text_account_subscription_desc" | ||||
|                             android:layout_width="match_parent" | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/account_tier" | ||||
|                             android:textColor="?textSecondary" /> | ||||
|                             android:text="@string/account_tier" /> | ||||
|                     </LinearLayout> | ||||
|                 </LinearLayout> | ||||
|  | ||||
| @ -132,7 +126,6 @@ | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:layout_marginTop="12dp" | ||||
|                 android:background="?themeSecondary" | ||||
|                 android:elevation="5dp" | ||||
|                 android:orientation="vertical"> | ||||
|  | ||||
| @ -143,7 +136,7 @@ | ||||
|                     android:paddingStart="7dp" | ||||
|                     android:paddingEnd="7dp" | ||||
|                     android:text="@string/settings" | ||||
|                     android:textSize="16sp" | ||||
|                     android:textAppearance="@style/TextAppearance.Material3.TitleMedium" | ||||
|                     android:textStyle="bold" /> | ||||
|  | ||||
|                 <LinearLayout | ||||
| @ -162,8 +155,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         android:src="@drawable/ic_baseline_language_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         android:src="@drawable/ic_baseline_language_24" /> | ||||
|  | ||||
|                     <LinearLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -175,14 +167,13 @@ | ||||
|                             android:layout_width="match_parent" | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:text="@string/settings_content_language" | ||||
|                             android:textSize="16sp" /> | ||||
|                             android:textAppearance="@style/TextAppearance.Material3.BodyLarge" /> | ||||
|  | ||||
|                         <TextView | ||||
|                             android:id="@+id/text_settings_content_language_desc" | ||||
|                             android:layout_width="match_parent" | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:text="@string/settings_content_language_desc" | ||||
|                             android:textColor="?textSecondary" /> | ||||
|                             android:text="@string/settings_content_language_desc" /> | ||||
|                     </LinearLayout> | ||||
|                 </LinearLayout> | ||||
|  | ||||
| @ -203,8 +194,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         android:src="@drawable/ic_baseline_subtitles_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         android:src="@drawable/ic_baseline_subtitles_24" /> | ||||
|  | ||||
|                     <androidx.constraintlayout.widget.ConstraintLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -226,7 +216,7 @@ | ||||
|                                 android:layout_height="wrap_content" | ||||
|                                 android:layout_weight="1" | ||||
|                                 android:text="@string/settings_prefer_subbed" | ||||
|                                 android:textSize="16sp" /> | ||||
|                                 android:textAppearance="@style/TextAppearance.Material3.BodyLarge" /> | ||||
|  | ||||
|                             <TextView | ||||
|                                 android:id="@+id/text_settings_secondary_desc" | ||||
| @ -234,8 +224,7 @@ | ||||
|                                 android:layout_height="wrap_content" | ||||
|                                 android:layout_weight="1" | ||||
|                                 android:maxLines="2" | ||||
|                                 android:text="@string/settings_prefer_subbed_desc" | ||||
|                                 android:textColor="?textSecondary" /> | ||||
|                                 android:text="@string/settings_prefer_subbed_desc" /> | ||||
|                         </LinearLayout> | ||||
|  | ||||
|                         <com.google.android.material.switchmaterial.SwitchMaterial | ||||
| @ -268,8 +257,7 @@ | ||||
|                         android:minWidth="48dp" | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:src="@drawable/ic_baseline_autorenew_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         android:src="@drawable/ic_baseline_autorenew_24" /> | ||||
|  | ||||
|                     <androidx.constraintlayout.widget.ConstraintLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -290,14 +278,13 @@ | ||||
|                                 android:layout_width="match_parent" | ||||
|                                 android:layout_height="wrap_content" | ||||
|                                 android:text="@string/settings_autoplay" | ||||
|                                 android:textSize="16sp" /> | ||||
|                                 android:textAppearance="@style/TextAppearance.Material3.BodyLarge" /> | ||||
|  | ||||
|                             <TextView | ||||
|                                 android:id="@+id/text_settings_auoplay_desc" | ||||
|                                 android:layout_width="match_parent" | ||||
|                                 android:layout_height="wrap_content" | ||||
|                                 android:text="@string/settings_autoplay_desc" | ||||
|                                 android:textColor="?textSecondary" /> | ||||
|                                 android:text="@string/settings_autoplay_desc" /> | ||||
|                         </LinearLayout> | ||||
|  | ||||
|                         <com.google.android.material.switchmaterial.SwitchMaterial | ||||
| @ -331,8 +318,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         android:src="@drawable/ic_baseline_style_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         android:src="@drawable/ic_baseline_style_24" /> | ||||
|  | ||||
|                     <LinearLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -345,15 +331,14 @@ | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/theme" | ||||
|                             android:textSize="16sp" /> | ||||
|                             android:textAppearance="@style/TextAppearance.Material3.BodyLarge" /> | ||||
|  | ||||
|                         <TextView | ||||
|                             android:id="@+id/text_theme_selected" | ||||
|                             android:layout_width="match_parent" | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/theme_light" | ||||
|                             android:textColor="?textSecondary" /> | ||||
|                             android:text="@string/theme_light" /> | ||||
|                     </LinearLayout> | ||||
|  | ||||
|                 </LinearLayout> | ||||
| @ -365,7 +350,6 @@ | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:layout_marginTop="12dp" | ||||
|                 android:background="?themeSecondary" | ||||
|                 android:clipToPadding="false" | ||||
|                 android:elevation="5dp" | ||||
|                 android:orientation="vertical"> | ||||
| @ -377,7 +361,7 @@ | ||||
|                     android:paddingStart="7dp" | ||||
|                     android:paddingEnd="7dp" | ||||
|                     android:text="@string/dev_settings" | ||||
|                     android:textSize="16sp" | ||||
|                     android:textAppearance="@style/TextAppearance.Material3.TitleMedium" | ||||
|                     android:textStyle="bold" /> | ||||
|  | ||||
|                 <LinearLayout | ||||
| @ -397,8 +381,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         android:src="@drawable/ic_baseline_access_time_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         android:src="@drawable/ic_baseline_access_time_24" /> | ||||
|  | ||||
|                     <androidx.constraintlayout.widget.ConstraintLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -419,14 +402,13 @@ | ||||
|                                 android:layout_width="match_parent" | ||||
|                                 android:layout_height="wrap_content" | ||||
|                                 android:text="@string/update_playhead" | ||||
|                                 android:textSize="16sp" /> | ||||
|                                 android:textAppearance="@style/TextAppearance.Material3.BodyLarge" /> | ||||
|  | ||||
|                             <TextView | ||||
|                                 android:id="@+id/text_update_playhead_desc" | ||||
|                                 android:layout_width="match_parent" | ||||
|                                 android:layout_height="wrap_content" | ||||
|                                 android:text="@string/update_playhead_desc" | ||||
|                                 android:textColor="?textSecondary" /> | ||||
|                                 android:text="@string/update_playhead_desc" /> | ||||
|                         </LinearLayout> | ||||
|  | ||||
|                         <com.google.android.material.switchmaterial.SwitchMaterial | ||||
| @ -462,8 +444,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         app:srcCompat="@drawable/ic_outline_upload_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         app:srcCompat="@drawable/ic_outline_upload_24" /> | ||||
|  | ||||
|                     <LinearLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -483,8 +464,7 @@ | ||||
|                             android:layout_width="match_parent" | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/export_data_desc" | ||||
|                             android:textColor="?textSecondary" /> | ||||
|                             android:text="@string/export_data_desc" /> | ||||
|                     </LinearLayout> | ||||
|  | ||||
|                 </LinearLayout> | ||||
| @ -508,8 +488,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         app:srcCompat="@drawable/ic_outline_download_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         app:srcCompat="@drawable/ic_outline_download_24" /> | ||||
|  | ||||
|                     <LinearLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -529,8 +508,7 @@ | ||||
|                             android:layout_width="match_parent" | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/import_data_desc" | ||||
|                             android:textColor="?textSecondary" /> | ||||
|                             android:text="@string/import_data_desc" /> | ||||
|                     </LinearLayout> | ||||
|  | ||||
|                 </LinearLayout> | ||||
| @ -542,7 +520,6 @@ | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:layout_marginTop="12dp" | ||||
|                 android:background="?themeSecondary" | ||||
|                 android:clipToPadding="false" | ||||
|                 android:elevation="5dp" | ||||
|                 android:orientation="vertical"> | ||||
| @ -554,7 +531,7 @@ | ||||
|                     android:paddingStart="7dp" | ||||
|                     android:paddingEnd="7dp" | ||||
|                     android:text="@string/info" | ||||
|                     android:textSize="16sp" | ||||
|                     android:textAppearance="@style/TextAppearance.Material3.TitleMedium" | ||||
|                     android:textStyle="bold" /> | ||||
|  | ||||
|                 <LinearLayout | ||||
| @ -575,8 +552,7 @@ | ||||
|                         android:minHeight="48dp" | ||||
|                         android:padding="9dp" | ||||
|                         android:scaleType="fitXY" | ||||
|                         app:srcCompat="@drawable/ic_outline_info_24" | ||||
|                         app:tint="?iconColor" /> | ||||
|                         app:srcCompat="@drawable/ic_outline_info_24" /> | ||||
|  | ||||
|                     <LinearLayout | ||||
|                         android:layout_width="match_parent" | ||||
| @ -589,7 +565,7 @@ | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/info_about" | ||||
|                             android:textSize="16sp" /> | ||||
|                             android:textAppearance="@style/TextAppearance.Material3.BodyLarge" /> | ||||
|  | ||||
|                         <TextView | ||||
|                             android:id="@+id/text_info_about_desc" | ||||
| @ -597,7 +573,8 @@ | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:layout_weight="1" | ||||
|                             android:text="@string/info_about_desc" | ||||
|                             android:textColor="?textSecondary" /> | ||||
|                              /> | ||||
|                             <!-- android:textColor="?textSecondary" --> | ||||
|                     </LinearLayout> | ||||
|  | ||||
|                 </LinearLayout> | ||||
|  | ||||
| @ -5,7 +5,6 @@ | ||||
|     android:id="@+id/ff_test" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     android:background="?themePrimary" | ||||
|     tools:context=".ui.activity.main.fragments.HomeFragment"> | ||||
|  | ||||
|     <ScrollView | ||||
| @ -70,9 +69,7 @@ | ||||
|                         android:layout_height="wrap_content" | ||||
|                         android:gravity="center" | ||||
|                         android:text="@string/my_list" | ||||
|                         android:textColor="?textSecondary" | ||||
|                         android:textSize="12sp" | ||||
|                         app:drawableTint="?buttonBackground" | ||||
|                         app:drawableTopCompat="@drawable/ic_baseline_add_24" /> | ||||
|  | ||||
|                     <Space | ||||
| @ -87,12 +84,9 @@ | ||||
|                         android:gravity="center" | ||||
|                         android:text="@string/button_play" | ||||
|                         android:textAllCaps="false" | ||||
|                         android:textColor="?themePrimary" | ||||
|                         android:textSize="16sp" | ||||
|                         app:backgroundTint="?buttonBackground" | ||||
|                         app:icon="@drawable/ic_baseline_play_arrow_24" | ||||
|                         app:iconGravity="textStart" | ||||
|                         app:iconTint="?themePrimary" /> | ||||
|                         app:iconGravity="textStart" /> | ||||
|  | ||||
|                     <Space | ||||
|                         android:layout_width="0dp" | ||||
| @ -105,9 +99,7 @@ | ||||
|                         android:layout_height="wrap_content" | ||||
|                         android:gravity="center" | ||||
|                         android:text="@string/info" | ||||
|                         android:textColor="?textSecondary" | ||||
|                         android:textSize="12sp" | ||||
|                         app:drawableTint="?buttonBackground" | ||||
|                         app:drawableTopCompat="@drawable/ic_outline_info_24" /> | ||||
|  | ||||
|                     <Space | ||||
|  | ||||
| @ -4,14 +4,12 @@ | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     android:background="?themePrimary" | ||||
|     tools:context=".ui.activity.main.fragments.LibraryFragment"> | ||||
|  | ||||
|     <org.mosad.teapod.ui.components.EmptySubmitSearchView | ||||
|         android:id="@+id/search_text" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="0dp" | ||||
|         android:background="?themeSecondary" | ||||
|         android:elevation="8dp" | ||||
|         android:iconifiedByDefault="false" | ||||
|         android:paddingBottom="5dp" | ||||
|  | ||||
| @ -4,7 +4,6 @@ | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     android:background="?themePrimary" | ||||
|     tools:context=".ui.activity.main.fragments.MediaFragment"> | ||||
|  | ||||
|     <androidx.coordinatorlayout.widget.CoordinatorLayout | ||||
| @ -14,8 +13,7 @@ | ||||
|         <com.google.android.material.appbar.AppBarLayout | ||||
|             android:id="@+id/app_layout" | ||||
|             android:layout_width="match_parent" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:background="?themePrimary"> | ||||
|             android:layout_height="wrap_content"> | ||||
|  | ||||
|             <LinearLayout | ||||
|                 android:id="@+id/linear_media" | ||||
| @ -108,12 +106,9 @@ | ||||
|                     android:gravity="center" | ||||
|                     android:text="@string/button_play" | ||||
|                     android:textAllCaps="false" | ||||
|                     android:textColor="?themePrimary" | ||||
|                     android:textSize="16sp" | ||||
|                     app:backgroundTint="?buttonBackground" | ||||
|                     app:icon="@drawable/ic_baseline_play_arrow_24" | ||||
|                     app:iconGravity="textStart" | ||||
|                     app:iconTint="?themePrimary" /> | ||||
|                     app:iconGravity="textStart" /> | ||||
|  | ||||
|                 <TextView | ||||
|                     android:id="@+id/text_title" | ||||
| @ -163,15 +158,13 @@ | ||||
|                             android:paddingTop="11dp" | ||||
|                             android:paddingEnd="11dp" | ||||
|                             android:paddingBottom="7dp" | ||||
|                             android:src="@drawable/ic_baseline_add_24" | ||||
|                             app:tint="?buttonBackground" /> | ||||
|                             android:src="@drawable/ic_baseline_add_24" /> | ||||
|  | ||||
|                         <TextView | ||||
|                             android:id="@+id/text_my_list_action" | ||||
|                             android:layout_width="wrap_content" | ||||
|                             android:layout_height="wrap_content" | ||||
|                             android:text="@string/my_list" | ||||
|                             android:textColor="?textSecondary" | ||||
|                             android:textSize="12sp" /> | ||||
|  | ||||
|                     </LinearLayout> | ||||
| @ -186,9 +179,7 @@ | ||||
|                     android:layout_marginEnd="7dp" | ||||
|                     android:background="@android:color/transparent" | ||||
|                     app:tabGravity="start" | ||||
|                     app:tabMode="scrollable" | ||||
|                     app:tabSelectedTextColor="?textPrimary" | ||||
|                     app:tabTextColor="?textSecondary" /> | ||||
|                     app:tabMode="scrollable" /> | ||||
|  | ||||
|             </LinearLayout> | ||||
|         </com.google.android.material.appbar.AppBarLayout> | ||||
| @ -207,7 +198,7 @@ | ||||
|         android:id="@+id/frame_loading" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="match_parent" | ||||
|         android:background="?themePrimary" | ||||
|         android:background="?android:colorBackground" | ||||
|         android:visibility="gone"> | ||||
|  | ||||
|         <com.google.android.material.progressindicator.CircularProgressIndicator | ||||
|  | ||||
| @ -4,7 +4,6 @@ | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="match_parent" | ||||
|     android:background="?themePrimary" | ||||
|     tools:context=".ui.activity.main.fragments.MyListsFragment"> | ||||
|  | ||||
|     <com.google.android.material.tabs.TabLayout | ||||
| @ -15,9 +14,8 @@ | ||||
|         app:layout_constraintEnd_toEndOf="parent" | ||||
|         app:layout_constraintStart_toStartOf="parent" | ||||
|         app:layout_constraintTop_toTopOf="parent" | ||||
|         app:tabMode="fixed" | ||||
|         app:tabSelectedTextColor="?textPrimary" | ||||
|         app:tabTextColor="?textSecondary"> | ||||
|         app:tabMode="fixed"> | ||||
|         <!-- TODO app:tabTextColor="?colorOnPrimary" --> | ||||
|  | ||||
|         <com.google.android.material.tabs.TabItem | ||||
|             android:layout_width="wrap_content" | ||||
|  | ||||
| @ -56,7 +56,6 @@ | ||||
|             android:ellipsize="end" | ||||
|             android:maxLines="3" | ||||
|             android:text="@string/component_episode_title" | ||||
|             android:textColor="?textPrimary" | ||||
|             android:textSize="16sp" /> | ||||
|  | ||||
|         <ImageView | ||||
| @ -65,8 +64,7 @@ | ||||
|             android:layout_height="30dp" | ||||
|             android:layout_margin="2dp" | ||||
|             android:contentDescription="@string/component_watched_desc" | ||||
|             app:srcCompat="@drawable/ic_baseline_check_circle_24" | ||||
|             app:tint="?iconColor" /> | ||||
|             app:srcCompat="@drawable/ic_baseline_check_circle_24" /> | ||||
|     </LinearLayout> | ||||
|  | ||||
|     <TextView | ||||
| @ -74,6 +72,6 @@ | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:ellipsize="end" | ||||
|         android:maxLines="3" | ||||
|         android:textColor="?textSecondary" /> | ||||
|         android:maxLines="3" /> | ||||
|     <!-- TODO android:textColor="?textSecondary" --> | ||||
| </LinearLayout> | ||||
| @ -3,8 +3,7 @@ | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
|     xmlns:tools="http://schemas.android.com/tools" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="wrap_content" | ||||
|     android:background="?themePrimary"> | ||||
|     android:layout_height="wrap_content"> | ||||
|  | ||||
|     <ImageView | ||||
|         android:id="@+id/shimmer_image_highlight" | ||||
| @ -21,7 +20,6 @@ | ||||
|         android:id="@+id/shimmer_linear_highlight" | ||||
|         android:layout_width="0dp" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:background="?themePrimary" | ||||
|         android:orientation="vertical" | ||||
|         android:paddingBottom="7dp" | ||||
|         app:layout_constraintBottom_toBottomOf="parent" | ||||
| @ -56,7 +54,6 @@ | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:gravity="center" | ||||
|                 android:textSize="12sp" | ||||
|                 app:drawableTint="?shapeTextBackground" | ||||
|                 app:drawableTopCompat="@drawable/ic_baseline_add_24" /> | ||||
|  | ||||
|             <Space | ||||
| @ -69,8 +66,7 @@ | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:gravity="center" | ||||
|                 android:textSize="16sp" | ||||
|                 app:backgroundTint="?shapeTextBackground" /> | ||||
|                 android:textSize="16sp" /> | ||||
|  | ||||
|             <Space | ||||
|                 android:layout_width="0dp" | ||||
| @ -82,7 +78,6 @@ | ||||
|                 android:layout_width="64dp" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:gravity="center" | ||||
|                 app:drawableTint="?shapeTextBackground" | ||||
|                 app:drawableTopCompat="@drawable/ic_outline_info_24" /> | ||||
|  | ||||
|             <Space | ||||
|  | ||||
| @ -8,7 +8,6 @@ | ||||
|     <com.google.android.material.card.MaterialCardView | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:backgroundTint="?themeSecondary" | ||||
|         app:cardCornerRadius="7dp" | ||||
|         app:cardElevation="4dp" | ||||
|         app:cardUseCompatPadding="true" | ||||
|  | ||||
| @ -8,7 +8,6 @@ | ||||
|     <com.google.android.material.card.MaterialCardView | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:backgroundTint="?themeSecondary" | ||||
|         app:cardCornerRadius="7dp" | ||||
|         app:cardElevation="4dp" | ||||
|         app:cardUseCompatPadding="true" | ||||
| @ -35,7 +34,6 @@ | ||||
|                     android:id="@+id/image_poster" | ||||
|                     android:layout_width="match_parent" | ||||
|                     android:layout_height="match_parent" | ||||
|                     android:background="?shapeTextBackground" | ||||
|                     tools:ignore="ContentDescription" /> | ||||
|  | ||||
|             </FrameLayout> | ||||
|  | ||||
							
								
								
									
										42
									
								
								app/src/main/res/values-night/themes.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								app/src/main/res/values-night/themes.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,42 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <resources> | ||||
|  | ||||
|     <style name="Widget.App.Button" parent="Widget.Material3.Button"> | ||||
|         <item name="backgroundTint">@color/buttonBackgroundDark</item> | ||||
|         <item name="android:textColor">@color/buttonTextColorDark</item> | ||||
|         <item name="iconTint">@color/buttonTextColorDark</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="AppThemeGenerated" parent="Theme.Material3.Dark.NoActionBar"> | ||||
| <!--        <item name="materialButtonStyle">@style/Widget.App.Button</item>--> | ||||
|         <item name="materialCardViewStyle">?attr/materialCardViewElevatedStyle</item> | ||||
|  | ||||
|         <item name="colorPrimary">@color/seed</item> | ||||
|         <item name="colorOnPrimary">@color/md_theme_light_onPrimary</item> | ||||
|         <item name="colorPrimaryContainer">@color/md_theme_dark_primaryContainer</item> | ||||
|         <item name="colorOnPrimaryContainer">@color/md_theme_dark_onPrimaryContainer</item> | ||||
|         <item name="colorSecondary">@color/md_theme_dark_secondary</item> | ||||
|         <item name="colorOnSecondary">@color/md_theme_dark_onSecondary</item> | ||||
|         <item name="colorSecondaryContainer">@color/md_theme_dark_secondaryContainer</item> | ||||
|         <item name="colorOnSecondaryContainer">@color/md_theme_dark_onSecondaryContainer</item> | ||||
|         <item name="colorTertiary">@color/md_theme_dark_tertiary</item> | ||||
|         <item name="colorOnTertiary">@color/md_theme_dark_onTertiary</item> | ||||
|         <item name="colorTertiaryContainer">@color/md_theme_dark_tertiaryContainer</item> | ||||
|         <item name="colorOnTertiaryContainer">@color/md_theme_dark_onTertiaryContainer</item> | ||||
|         <item name="colorError">@color/md_theme_dark_error</item> | ||||
|         <item name="colorErrorContainer">@color/md_theme_dark_errorContainer</item> | ||||
|         <item name="colorOnError">@color/md_theme_dark_onError</item> | ||||
|         <item name="colorOnErrorContainer">@color/md_theme_dark_onErrorContainer</item> | ||||
|         <item name="android:colorBackground">@color/md_theme_dark_background</item> | ||||
|         <item name="colorOnBackground">@color/md_theme_dark_onBackground</item> | ||||
|         <item name="colorSurface">@color/md_theme_dark_surface</item> | ||||
|         <item name="colorOnSurface">@color/md_theme_dark_onSurface</item> | ||||
|         <item name="colorSurfaceVariant">@color/md_theme_dark_surfaceVariant</item> | ||||
|         <item name="colorOnSurfaceVariant">@color/md_theme_dark_onSurfaceVariant</item> | ||||
|         <item name="colorOutline">@color/md_theme_dark_outline</item> | ||||
|         <item name="colorOnSurfaceInverse">@color/md_theme_dark_inverseOnSurface</item> | ||||
|         <item name="colorSurfaceInverse">@color/md_theme_dark_inverseSurface</item> | ||||
|         <item name="colorPrimaryInverse">@color/md_theme_dark_inversePrimary</item> | ||||
|     </style> | ||||
|  | ||||
| </resources> | ||||
| @ -2,6 +2,10 @@ | ||||
| <resources> | ||||
|     <!-- base theme colors --> | ||||
|     <color name="colorPrimary">#66aa00</color> | ||||
|     <color name="colorOnPrimary">#FFFFFF</color> | ||||
|     <color name="colorSecondary">#607d8b</color> | ||||
|     <color name="colorTertiary">#899579</color> | ||||
|  | ||||
|     <color name="colorPrimaryLight">#99dc45</color> | ||||
|     <color name="colorPrimaryDark">#317a00</color> | ||||
|     <color name="colorAccent">#607d8b</color> | ||||
| @ -15,6 +19,8 @@ | ||||
|     <color name="textBackgroundLight">#55000000</color> | ||||
|     <color name="iconColorLight">#99000000</color> | ||||
|     <color name="buttonBackgroundLight">#000000</color> | ||||
|     <color name="buttonTextColorLight">#ffffff</color> | ||||
|  | ||||
|  | ||||
|     <!-- dark theme colors --> | ||||
|     <color name="themePrimaryDark">#121212</color> | ||||
| @ -24,6 +30,7 @@ | ||||
|     <color name="textBackgroundDark">#55ffffff</color> | ||||
|     <color name="iconColorDark">#99ffffff</color> | ||||
|     <color name="buttonBackgroundDark">#ffffff</color> | ||||
|     <color name="buttonTextColorDark">#000000</color> | ||||
|     <color name="controlHighlightDark">#11ffffff</color> | ||||
|  | ||||
|     <!-- player colors --> | ||||
| @ -31,4 +38,67 @@ | ||||
|  | ||||
|     <color name="ic_launcher_background">#ffffff</color> | ||||
|     <color name="ic_splash_background">#ffffff</color> | ||||
|  | ||||
|     <!-- material3 colors --> | ||||
|     <color name="seed">#66aa00</color> | ||||
|     <color name="md_theme_light_primary">#3E6A00</color> | ||||
|     <color name="md_theme_light_onPrimary">#FFFFFF</color> | ||||
|     <color name="md_theme_light_primaryContainer">#99d853</color> | ||||
|     <color name="md_theme_light_onPrimaryContainer">#0F2000</color> | ||||
|     <color name="md_theme_light_secondary">#416916</color> | ||||
|     <color name="md_theme_light_onSecondary">#FFFFFF</color> | ||||
|     <color name="md_theme_light_secondaryContainer">#C1F18E</color> | ||||
|     <color name="md_theme_light_onSecondaryContainer">#0E2000</color> | ||||
|     <color name="md_theme_light_tertiary">#006783</color> | ||||
|     <color name="md_theme_light_onTertiary">#FFFFFF</color> | ||||
|     <color name="md_theme_light_tertiaryContainer">#BDE9FF</color> | ||||
|     <color name="md_theme_light_onTertiaryContainer">#001F2A</color> | ||||
|     <color name="md_theme_light_error">#BA1A1A</color> | ||||
|     <color name="md_theme_light_errorContainer">#FFDAD6</color> | ||||
|     <color name="md_theme_light_onError">#FFFFFF</color> | ||||
|     <color name="md_theme_light_onErrorContainer">#410002</color> | ||||
|     <color name="md_theme_light_background">#FDFCF5</color> | ||||
|     <color name="md_theme_light_onBackground">#1B1C18</color> | ||||
|     <color name="md_theme_light_surface">#FDFCF5</color> | ||||
|     <color name="md_theme_light_onSurface">#1B1C18</color> | ||||
|     <color name="md_theme_light_surfaceVariant">#E1E4D5</color> | ||||
|     <color name="md_theme_light_onSurfaceVariant">#44483D</color> | ||||
|     <color name="md_theme_light_outline">#75796C</color> | ||||
|     <color name="md_theme_light_inverseOnSurface">#F2F1E9</color> | ||||
|     <color name="md_theme_light_inverseSurface">#30312C</color> | ||||
|     <color name="md_theme_light_inversePrimary">#92DA3E</color> | ||||
|     <color name="md_theme_light_shadow">#000000</color> | ||||
|     <color name="md_theme_light_surfaceTint">#3E6A00</color> | ||||
|     <color name="md_theme_light_outlineVariant">#C5C8BA</color> | ||||
|     <color name="md_theme_light_scrim">#000000</color> | ||||
|     <color name="md_theme_dark_primary">#92DA3E</color> | ||||
|     <color name="md_theme_dark_onPrimary">#1E3700</color> | ||||
|     <color name="md_theme_dark_primaryContainer">#2D5000</color> | ||||
|     <color name="md_theme_dark_onPrimaryContainer">#ACF758</color> | ||||
|     <color name="md_theme_dark_secondary">#A6D475</color> | ||||
|     <color name="md_theme_dark_onSecondary">#1D3700</color> | ||||
|     <color name="md_theme_dark_secondaryContainer">#2C5000</color> | ||||
|     <color name="md_theme_dark_onSecondaryContainer">#C1F18E</color> | ||||
|     <color name="md_theme_dark_tertiary">#65D3FF</color> | ||||
|     <color name="md_theme_dark_onTertiary">#003546</color> | ||||
|     <color name="md_theme_dark_tertiaryContainer">#004D64</color> | ||||
|     <color name="md_theme_dark_onTertiaryContainer">#BDE9FF</color> | ||||
|     <color name="md_theme_dark_error">#FFB4AB</color> | ||||
|     <color name="md_theme_dark_errorContainer">#93000A</color> | ||||
|     <color name="md_theme_dark_onError">#690005</color> | ||||
|     <color name="md_theme_dark_onErrorContainer">#FFDAD6</color> | ||||
|     <color name="md_theme_dark_background">#1B1C18</color> | ||||
|     <color name="md_theme_dark_onBackground">#E3E3DB</color> | ||||
|     <color name="md_theme_dark_surface">#1B1C18</color> | ||||
|     <color name="md_theme_dark_onSurface">#E3E3DB</color> | ||||
|     <color name="md_theme_dark_surfaceVariant">#44483D</color> | ||||
|     <color name="md_theme_dark_onSurfaceVariant">#C5C8BA</color> | ||||
|     <color name="md_theme_dark_outline">#8E9285</color> | ||||
|     <color name="md_theme_dark_inverseOnSurface">#1B1C18</color> | ||||
|     <color name="md_theme_dark_inverseSurface">#E3E3DB</color> | ||||
|     <color name="md_theme_dark_inversePrimary">#3E6A00</color> | ||||
|     <color name="md_theme_dark_shadow">#000000</color> | ||||
|     <color name="md_theme_dark_surfaceTint">#92DA3E</color> | ||||
|     <color name="md_theme_dark_outlineVariant">#44483D</color> | ||||
|     <color name="md_theme_dark_scrim">#000000</color> | ||||
| </resources> | ||||
| @ -1,14 +1,51 @@ | ||||
| <resources> | ||||
|     <!-- application themes --> | ||||
|     <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> | ||||
|         <item name="colorPrimary">@color/colorPrimary</item> | ||||
|         <item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||||
|         <item name="colorAccent">@color/colorAccent</item> | ||||
|     <style name="AppTheme.DayNight" parent="Theme.Material3.DayNight.NoActionBar"> | ||||
|        <!-- <item name="colorPrimary">@color/colorPrimary</item> | ||||
|         <item name="colorOnPrimary">@color/colorOnPrimary</item> | ||||
|         <item name="colorOutline">#ffffff</item> | ||||
|         <item name="colorSurfaceVariant">#c5c8ba</item> | ||||
|         <item name="colorOnPrimaryContainer">#2d5000</item> | ||||
|         <item name="colorPrimaryContainer">@color/colorSecondary</item> | ||||
|         <item name="colorSecondary">@color/colorSecondary</item> | ||||
|         <item name="colorTertiary">@color/colorTertiary</item> | ||||
|         <item name="materialButtonStyle">@style/Widget.App.Button.DayNight</item> | ||||
|         <item name="popupMenuStyle">@style/Widget.App.PopupMenu</item> | ||||
|         <item name="searchViewStyle">@style/SearchViewStyle</item> | ||||
|         <item name="materialCardViewStyle">?attr/materialCardViewElevatedStyle</item>--> | ||||
|     </style> | ||||
|  | ||||
|     <style name="AppTheme.Light" parent="AppTheme"> | ||||
|     <style name="AppTheme" parent="Theme.Material3.DayNight.NoActionBar"> | ||||
|         <!--        <item name="materialButtonStyle">@style/Widget.App.Button</item>--> | ||||
|         <item name="materialCardViewStyle">?attr/materialCardViewElevatedStyle</item> | ||||
|  | ||||
|         <item name="colorPrimary">@color/seed</item> | ||||
|         <item name="colorOnPrimary">@color/md_theme_light_onPrimary</item> | ||||
|         <item name="colorPrimaryContainer">@color/md_theme_light_primaryContainer</item> | ||||
|         <item name="colorOnPrimaryContainer">@color/md_theme_light_onPrimaryContainer</item> | ||||
|         <item name="colorSecondary">@color/md_theme_light_secondary</item> | ||||
|         <item name="colorOnSecondary">@color/md_theme_light_onSecondary</item> | ||||
|         <item name="colorSecondaryContainer">@color/md_theme_light_secondaryContainer</item> | ||||
|         <item name="colorOnSecondaryContainer">@color/md_theme_light_onSecondaryContainer</item> | ||||
|         <item name="colorTertiary">@color/md_theme_light_tertiary</item> | ||||
|         <item name="colorOnTertiary">@color/md_theme_light_onTertiary</item> | ||||
|         <item name="colorTertiaryContainer">@color/md_theme_light_tertiaryContainer</item> | ||||
|         <item name="colorOnTertiaryContainer">@color/md_theme_light_onTertiaryContainer</item> | ||||
|         <item name="colorError">@color/md_theme_light_error</item> | ||||
|         <item name="colorErrorContainer">@color/md_theme_light_errorContainer</item> | ||||
|         <item name="colorOnError">@color/md_theme_light_onError</item> | ||||
|         <item name="colorOnErrorContainer">@color/md_theme_light_onErrorContainer</item> | ||||
|         <item name="colorSurface">@color/md_theme_light_surface</item> | ||||
|         <item name="colorOnSurface">@color/md_theme_light_onSurface</item> | ||||
|         <item name="colorSurfaceVariant">@color/md_theme_light_surfaceVariant</item> | ||||
|         <item name="colorOnSurfaceVariant">@color/md_theme_light_onSurfaceVariant</item> | ||||
|         <item name="colorOutline">@color/md_theme_light_outline</item> | ||||
|         <item name="colorOnSurfaceInverse">@color/md_theme_light_inverseOnSurface</item> | ||||
|         <item name="colorSurfaceInverse">@color/md_theme_light_inverseSurface</item> | ||||
|         <item name="colorPrimaryInverse">@color/md_theme_light_inversePrimary</item> | ||||
|     </style> | ||||
|  | ||||
| <!--    <style name="AppTheme.Light" parent="AppTheme"> | ||||
|         <item name="themePrimary">@color/themePrimaryLight</item> | ||||
|         <item name="themeSecondary">@color/themeSecondaryLight</item> | ||||
|         <item name="textPrimary">@color/textPrimaryLight</item> | ||||
| @ -34,8 +71,12 @@ | ||||
|         <item name="buttonBackground">@color/buttonBackgroundDark</item> | ||||
|  | ||||
|         <item name="materialAlertDialogTheme">@style/ThemeOverlay.App.MaterialAlertDialog.Dark</item> | ||||
|         <!-- change on click indicator color for manually set components --> | ||||
|         <!– change on click indicator color for manually set components –> | ||||
|         <item name="colorControlHighlight">@color/controlHighlightDark</item> | ||||
|     </style>--> | ||||
|  | ||||
|     <style name="Widget.App.Button.DayNight" parent="Widget.App.Button"> | ||||
|         <item name="shapeAppearance">@style/ShapeAppearance.Material3.SmallComponent</item> | ||||
|     </style> | ||||
|  | ||||
|     <!-- dialog themes --> | ||||
| @ -79,7 +120,7 @@ | ||||
|         <item name="windowSplashScreenAnimationDuration">200</item> | ||||
|  | ||||
|         <!-- Set the theme of the Activity that directly follows your splash screen. --> | ||||
|         <item name="postSplashScreenTheme">@style/AppTheme.Dark</item>  # Required. | ||||
|         <item name="postSplashScreenTheme">@style/AppTheme</item>  # Required. | ||||
|     </style> | ||||
|  | ||||
|     <!-- shapes --> | ||||
| @ -90,7 +131,7 @@ | ||||
|  | ||||
|     <!-- popup menus --> | ||||
|     <style name="Widget.App.PopupMenu" parent="Widget.MaterialComponents.PopupMenu"> | ||||
|         <item name="android:popupBackground">?themeSecondary</item> | ||||
| <!--        <item name="android:popupBackground">?themeSecondary</item>--> | ||||
|     </style> | ||||
|  | ||||
|     <!-- fullscreen dialog fragments --> | ||||
|  | ||||
							
								
								
									
										40
									
								
								app/src/main/res/values/themes.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								app/src/main/res/values/themes.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,40 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <resources> | ||||
|     <style name="Widget.App.Button" parent="Widget.Material3.Button"> | ||||
|         <item name="backgroundTint">@color/buttonBackgroundLight</item> | ||||
|         <item name="android:textColor">@color/buttonTextColorLight</item> | ||||
|         <item name="iconTint">@color/buttonTextColorLight</item> | ||||
|     </style> | ||||
|  | ||||
|     <style name="AppThemeGenerated" parent="Theme.Material3.Light.NoActionBar"> | ||||
| <!--        <item name="materialButtonStyle">@style/Widget.App.Button</item>--> | ||||
|         <item name="materialCardViewStyle">?attr/materialCardViewElevatedStyle</item> | ||||
|  | ||||
|         <item name="colorPrimary">@color/seed</item> | ||||
|         <item name="colorOnPrimary">@color/md_theme_light_onPrimary</item> | ||||
|         <item name="colorPrimaryContainer">@color/md_theme_light_primaryContainer</item> | ||||
|         <item name="colorOnPrimaryContainer">@color/md_theme_light_onPrimaryContainer</item> | ||||
|         <item name="colorSecondary">@color/md_theme_light_secondary</item> | ||||
|         <item name="colorOnSecondary">@color/md_theme_light_onSecondary</item> | ||||
|         <item name="colorSecondaryContainer">@color/md_theme_light_secondaryContainer</item> | ||||
|         <item name="colorOnSecondaryContainer">@color/md_theme_light_onSecondaryContainer</item> | ||||
|         <item name="colorTertiary">@color/md_theme_light_tertiary</item> | ||||
|         <item name="colorOnTertiary">@color/md_theme_light_onTertiary</item> | ||||
|         <item name="colorTertiaryContainer">@color/md_theme_light_tertiaryContainer</item> | ||||
|         <item name="colorOnTertiaryContainer">@color/md_theme_light_onTertiaryContainer</item> | ||||
|         <item name="colorError">@color/md_theme_light_error</item> | ||||
|         <item name="colorErrorContainer">@color/md_theme_light_errorContainer</item> | ||||
|         <item name="colorOnError">@color/md_theme_light_onError</item> | ||||
|         <item name="colorOnErrorContainer">@color/md_theme_light_onErrorContainer</item> | ||||
|         <item name="android:colorBackground">@color/md_theme_light_background</item> | ||||
|         <item name="colorOnBackground">@color/md_theme_light_onBackground</item> | ||||
|         <item name="colorSurface">@color/md_theme_light_surface</item> | ||||
|         <item name="colorOnSurface">@color/md_theme_light_onSurface</item> | ||||
|         <item name="colorSurfaceVariant">@color/md_theme_light_surfaceVariant</item> | ||||
|         <item name="colorOnSurfaceVariant">@color/md_theme_light_onSurfaceVariant</item> | ||||
|         <item name="colorOutline">@color/md_theme_light_outline</item> | ||||
|         <item name="colorOnSurfaceInverse">@color/md_theme_light_inverseOnSurface</item> | ||||
|         <item name="colorSurfaceInverse">@color/md_theme_light_inverseSurface</item> | ||||
|         <item name="colorPrimaryInverse">@color/md_theme_light_inversePrimary</item> | ||||
|     </style> | ||||
| </resources> | ||||
		Reference in New Issue
	
	Block a user