migrate to material 3 #70
| @ -1,5 +0,0 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> |  | ||||||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> |  | ||||||
|     <item android:color="?attr/colorPrimary" android:state_checked="true"/> |  | ||||||
|     <item android:color="?attr/iconColor"/> |  | ||||||
| </selector> |  | ||||||
| @ -6,7 +6,7 @@ | |||||||
|             android:shape="ring" |             android:shape="ring" | ||||||
|             android:thickness="4dp" |             android:thickness="4dp" | ||||||
|             android:useLevel="false"> |             android:useLevel="false"> | ||||||
|             <solid android:color="?iconColor"/> |             <solid android:color="?colorOutline"/> | ||||||
|         </shape> |         </shape> | ||||||
|     </item> |     </item> | ||||||
| </layer-list> | </layer-list> | ||||||
| @ -6,7 +6,7 @@ | |||||||
|             android:shape="ring" |             android:shape="ring" | ||||||
|             android:thickness="4dp" |             android:thickness="4dp" | ||||||
|             android:useLevel="false"> |             android:useLevel="false"> | ||||||
|             <solid android:color="@color/colorAccent" /> |             <solid android:color="?colorSecondary" /> | ||||||
|         </shape> |         </shape> | ||||||
|     </item> |     </item> | ||||||
| </layer-list> | </layer-list> | ||||||
| @ -3,7 +3,7 @@ | |||||||
|     android:height="24dp" |     android:height="24dp" | ||||||
|     android:viewportWidth="24" |     android:viewportWidth="24" | ||||||
|     android:viewportHeight="24" |     android:viewportHeight="24" | ||||||
|     android:tint="?attr/iconColor"> |     android:tint="?attr/colorControlNormal"> | ||||||
|   <path |   <path | ||||||
|       android:fillColor="@android:color/white" |       android:fillColor="@android:color/white" | ||||||
|       android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/> |       android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/> | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| <?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="?shapeTextBackground"/> |     <solid android:color="?colorSurfaceVariant"/> | ||||||
|     <size |     <size | ||||||
|         android:width="1920px" |         android:width="1920px" | ||||||
|         android:height="1080px"/> |         android:height="1080px"/> | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| <?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="?attr/shapeTextBackground"/> |     <solid android:color="?colorSurfaceVariant"/> | ||||||
|     <corners android:radius="3dp"/> |     <corners android:radius="3dp"/> | ||||||
| </shape> | </shape> | ||||||
| @ -10,6 +10,7 @@ | |||||||
|         android:layout_height="128dp" |         android:layout_height="128dp" | ||||||
|         android:contentDescription="@string/app_name" |         android:contentDescription="@string/app_name" | ||||||
|         android:scaleType="fitCenter" |         android:scaleType="fitCenter" | ||||||
|  |         android:tint="?colorTeapodIcon" | ||||||
|         app:layout_constraintEnd_toEndOf="parent" |         app:layout_constraintEnd_toEndOf="parent" | ||||||
|         app:layout_constraintHorizontal_bias="0.5" |         app:layout_constraintHorizontal_bias="0.5" | ||||||
|         app:layout_constraintStart_toStartOf="parent" |         app:layout_constraintStart_toStartOf="parent" | ||||||
|  | |||||||
| @ -15,6 +15,7 @@ | |||||||
|             android:layout_height="128dp" |             android:layout_height="128dp" | ||||||
|             android:contentDescription="@string/app_name" |             android:contentDescription="@string/app_name" | ||||||
|             android:scaleType="fitCenter" |             android:scaleType="fitCenter" | ||||||
|  |             android:tint="?colorTeapodIcon" | ||||||
|             app:layout_constraintEnd_toEndOf="parent" |             app:layout_constraintEnd_toEndOf="parent" | ||||||
|             app:layout_constraintHorizontal_bias="0.5" |             app:layout_constraintHorizontal_bias="0.5" | ||||||
|             app:layout_constraintStart_toStartOf="parent" |             app:layout_constraintStart_toStartOf="parent" | ||||||
|  | |||||||
| @ -24,8 +24,8 @@ | |||||||
|                 android:layout_width="match_parent" |                 android:layout_width="match_parent" | ||||||
|                 android:layout_height="match_parent" |                 android:layout_height="match_parent" | ||||||
|                 android:contentDescription="@string/component_poster_desc" |                 android:contentDescription="@string/component_poster_desc" | ||||||
|                 app:shapeAppearance="@style/ShapeAppearance.Teapod.RoundedPoster" |                 android:src="@drawable/placeholder_image" | ||||||
|                 app:srcCompat="@color/imagePlaceholder" /> |                 app:shapeAppearance="@style/ShapeAppearance.Teapod.RoundedPoster" /> | ||||||
|  |  | ||||||
|             <ImageView |             <ImageView | ||||||
|                 android:id="@+id/image_episode_play" |                 android:id="@+id/image_episode_play" | ||||||
|  | |||||||
| @ -15,8 +15,8 @@ | |||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="match_parent" |             android:layout_height="match_parent" | ||||||
|             android:contentDescription="@string/component_poster_desc" |             android:contentDescription="@string/component_poster_desc" | ||||||
|             app:shapeAppearance="@style/ShapeAppearance.Teapod.RoundedPoster" |             android:src="@drawable/placeholder_image" | ||||||
|             app:srcCompat="@color/imagePlaceholder" /> |             app:shapeAppearance="@style/ShapeAppearance.Teapod.RoundedPoster" /> | ||||||
|  |  | ||||||
|         <ImageView |         <ImageView | ||||||
|             android:id="@+id/image_episode_play" |             android:id="@+id/image_episode_play" | ||||||
|  | |||||||
| @ -9,6 +9,7 @@ | |||||||
|  |  | ||||||
|     <style name="AppTheme" parent="Theme.Material3.Dark.NoActionBar"> |     <style name="AppTheme" parent="Theme.Material3.Dark.NoActionBar"> | ||||||
| <!--        <item name="materialButtonStyle">@style/Widget.App.Button</item>--> | <!--        <item name="materialButtonStyle">@style/Widget.App.Button</item>--> | ||||||
|  |         <item name="searchViewStyle">@style/SearchViewStyle</item> | ||||||
|         <item name="materialCardViewStyle">?attr/materialCardViewElevatedStyle</item> |         <item name="materialCardViewStyle">?attr/materialCardViewElevatedStyle</item> | ||||||
|  |  | ||||||
|         <item name="colorPrimary">@color/seed</item> |         <item name="colorPrimary">@color/seed</item> | ||||||
| @ -37,6 +38,7 @@ | |||||||
|         <item name="colorOnSurfaceInverse">@color/md_theme_dark_inverseOnSurface</item> |         <item name="colorOnSurfaceInverse">@color/md_theme_dark_inverseOnSurface</item> | ||||||
|         <item name="colorSurfaceInverse">@color/md_theme_dark_inverseSurface</item> |         <item name="colorSurfaceInverse">@color/md_theme_dark_inverseSurface</item> | ||||||
|         <item name="colorPrimaryInverse">@color/md_theme_dark_inversePrimary</item> |         <item name="colorPrimaryInverse">@color/md_theme_dark_inversePrimary</item> | ||||||
|  |         <item name="colorTeapodIcon">@color/button_background_dark</item> | ||||||
|     </style> |     </style> | ||||||
|  |  | ||||||
| </resources> | </resources> | ||||||
| @ -1,10 +1,4 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <resources> | <resources> | ||||||
|     <attr format="color" name="themePrimary"/> |     <attr format="color" name="colorTeapodIcon"/> | ||||||
|     <attr format="color" name="themeSecondary"/> |  | ||||||
|     <attr format="color" name="textPrimary"/> |  | ||||||
|     <attr format="color" name="textSecondary"/> |  | ||||||
|     <attr format="color" name="iconColor"/> |  | ||||||
|     <attr format="color" name="buttonBackground"/> |  | ||||||
|     <attr format="color" name="shapeTextBackground"/> |  | ||||||
| </resources> | </resources> | ||||||
| @ -1,9 +1,5 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <resources> | <resources> | ||||||
|     <!-- theme independent colors --> |  | ||||||
|     <color name="colorAccent">#607d8b</color> |  | ||||||
|     <color name="imagePlaceholder">#c2c2c2</color> |  | ||||||
|  |  | ||||||
|     <!-- light theme colors --> |     <!-- light theme colors --> | ||||||
|     <color name="button_background_light">#000000</color> |     <color name="button_background_light">#000000</color> | ||||||
|     <color name="button_text_color_light">#ffffff</color> |     <color name="button_text_color_light">#ffffff</color> | ||||||
|  | |||||||
| @ -8,6 +8,7 @@ | |||||||
|  |  | ||||||
|     <style name="AppTheme" parent="Theme.Material3.Light.NoActionBar"> |     <style name="AppTheme" parent="Theme.Material3.Light.NoActionBar"> | ||||||
| <!--        <item name="materialButtonStyle">@style/Widget.App.Button</item>--> | <!--        <item name="materialButtonStyle">@style/Widget.App.Button</item>--> | ||||||
|  |         <item name="searchViewStyle">@style/SearchViewStyle</item> | ||||||
|         <item name="materialCardViewStyle">?attr/materialCardViewElevatedStyle</item> |         <item name="materialCardViewStyle">?attr/materialCardViewElevatedStyle</item> | ||||||
|  |  | ||||||
|         <item name="colorPrimary">@color/seed</item> |         <item name="colorPrimary">@color/seed</item> | ||||||
| @ -36,5 +37,6 @@ | |||||||
|         <item name="colorOnSurfaceInverse">@color/md_theme_light_inverseOnSurface</item> |         <item name="colorOnSurfaceInverse">@color/md_theme_light_inverseOnSurface</item> | ||||||
|         <item name="colorSurfaceInverse">@color/md_theme_light_inverseSurface</item> |         <item name="colorSurfaceInverse">@color/md_theme_light_inverseSurface</item> | ||||||
|         <item name="colorPrimaryInverse">@color/md_theme_light_inversePrimary</item> |         <item name="colorPrimaryInverse">@color/md_theme_light_inversePrimary</item> | ||||||
|  |         <item name="colorTeapodIcon">@color/button_background_light</item> | ||||||
|     </style> |     </style> | ||||||
| </resources> | </resources> | ||||||
		Reference in New Issue
	
	Block a user