diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-01-13 17:24:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 17:24:51 +0100 |
commit | d7bfe89b13dd5ed4e9aa7bd64b83d2a59c7e296f (patch) | |
tree | 8428f6e244d644501b9f7db74bfda38881ef2156 /core/src/main | |
parent | 88289d02ae2a402ec77723dd53da33e9cf4c7311 (diff) | |
download | AntennaPod-d7bfe89b13dd5ed4e9aa7bd64b83d2a59c7e296f.zip |
Branding upgrade (#6146)
Diffstat (limited to 'core/src/main')
32 files changed, 46 insertions, 26 deletions
diff --git a/core/src/main/res/drawable-hdpi/ic_notification.png b/core/src/main/res/drawable-hdpi/ic_notification.png Binary files differindex e0b0f7f18..c49404f8c 100644 --- a/core/src/main/res/drawable-hdpi/ic_notification.png +++ b/core/src/main/res/drawable-hdpi/ic_notification.png diff --git a/core/src/main/res/drawable-hdpi/ic_notification_new.png b/core/src/main/res/drawable-hdpi/ic_notification_new.png Binary files differindex 28a8446e4..cef10dc6f 100644 --- a/core/src/main/res/drawable-hdpi/ic_notification_new.png +++ b/core/src/main/res/drawable-hdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable-mdpi/ic_notification.png b/core/src/main/res/drawable-mdpi/ic_notification.png Binary files differindex 42943c7f0..5a2c3c590 100644 --- a/core/src/main/res/drawable-mdpi/ic_notification.png +++ b/core/src/main/res/drawable-mdpi/ic_notification.png diff --git a/core/src/main/res/drawable-mdpi/ic_notification_new.png b/core/src/main/res/drawable-mdpi/ic_notification_new.png Binary files differindex 02530f5e4..a8c4de14a 100644 --- a/core/src/main/res/drawable-mdpi/ic_notification_new.png +++ b/core/src/main/res/drawable-mdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable-nodpi/ic_launcher_foreground_no_finish.png b/core/src/main/res/drawable-nodpi/ic_launcher_foreground_no_finish.png Binary files differdeleted file mode 100644 index 33a5b3fe4..000000000 --- a/core/src/main/res/drawable-nodpi/ic_launcher_foreground_no_finish.png +++ /dev/null diff --git a/core/src/main/res/drawable-nodpi/ic_monochrome.png b/core/src/main/res/drawable-nodpi/ic_monochrome.png Binary files differnew file mode 100644 index 000000000..883d02e9e --- /dev/null +++ b/core/src/main/res/drawable-nodpi/ic_monochrome.png diff --git a/core/src/main/res/drawable-xhdpi/ic_notification.png b/core/src/main/res/drawable-xhdpi/ic_notification.png Binary files differindex 2c633ba6b..433eec476 100644 --- a/core/src/main/res/drawable-xhdpi/ic_notification.png +++ b/core/src/main/res/drawable-xhdpi/ic_notification.png diff --git a/core/src/main/res/drawable-xhdpi/ic_notification_new.png b/core/src/main/res/drawable-xhdpi/ic_notification_new.png Binary files differindex 49c696798..765827b18 100644 --- a/core/src/main/res/drawable-xhdpi/ic_notification_new.png +++ b/core/src/main/res/drawable-xhdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable-xxhdpi/ic_notification.png b/core/src/main/res/drawable-xxhdpi/ic_notification.png Binary files differindex 16cc2aaf4..db44a547f 100644 --- a/core/src/main/res/drawable-xxhdpi/ic_notification.png +++ b/core/src/main/res/drawable-xxhdpi/ic_notification.png diff --git a/core/src/main/res/drawable-xxhdpi/ic_notification_new.png b/core/src/main/res/drawable-xxhdpi/ic_notification_new.png Binary files differindex ec6ef4f1e..3d47c6f2e 100644 --- a/core/src/main/res/drawable-xxhdpi/ic_notification_new.png +++ b/core/src/main/res/drawable-xxhdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable-xxxhdpi/ic_notification.png b/core/src/main/res/drawable-xxxhdpi/ic_notification.png Binary files differindex fbbb94cd0..e38b1de34 100644 --- a/core/src/main/res/drawable-xxxhdpi/ic_notification.png +++ b/core/src/main/res/drawable-xxxhdpi/ic_notification.png diff --git a/core/src/main/res/drawable-xxxhdpi/ic_notification_new.png b/core/src/main/res/drawable-xxxhdpi/ic_notification_new.png Binary files differindex 66f968872..c1e74c077 100644 --- a/core/src/main/res/drawable-xxxhdpi/ic_notification_new.png +++ b/core/src/main/res/drawable-xxxhdpi/ic_notification_new.png diff --git a/core/src/main/res/drawable/bg_splash.xml b/core/src/main/res/drawable/bg_splash.xml deleted file mode 100644 index 929fe411a..000000000 --- a/core/src/main/res/drawable/bg_splash.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> - - <item> - <shape android:shape="rectangle" > - <gradient - android:angle="-90" - android:startColor="@color/icon_background_gradient_start" - android:endColor="@color/icon_background_gradient_end" /> - </shape> - </item> - - <item> - <bitmap - android:gravity="center" - android:src="@drawable/ic_launcher_foreground_no_finish"/> - </item> - -</layer-list>
\ No newline at end of file diff --git a/core/src/main/res/drawable/splash_icon.xml b/core/src/main/res/drawable/splash_icon.xml new file mode 100644 index 000000000..acd17670e --- /dev/null +++ b/core/src/main/res/drawable/splash_icon.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<animated-vector + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt"> + + <aapt:attr name="android:drawable"> + <vector + android:height="80dp" android:width="80dp" + android:viewportHeight="72" android:viewportWidth="72"> + <group android:name="icon" android:pivotX="36" android:pivotY="36"> + <path android:fillColor="@color/accent_light" + android:pathData="M 36 23.4 A 12.6 12.6 90 0 0 23.4 36 A 12.6 12.6 90 0 0 30.96 47.515 L 34.46 37.61 C 34.04 37.19 33.76 36.63 33.76 36 c 0 -1.225 0.98 -2.24 2.24 -2.24 c 1.225 0 2.24 0.98 2.24 2.24 c 0 0.63 -0.245 1.19 -0.665 1.61 L 41.04 47.515 A 12.6 12.6 90 0 0 48.6 36 A 12.6 12.6 90 0 0 36 23.4 Z m 0 2.975 c 5.32 0 9.625 4.305 9.625 9.625 c 0 3.395 -1.75 6.37 -4.41 8.085 L 40.725 42.65 C 42.79 41.18 44.155 38.765 44.155 36 c 0 -4.515 -3.64 -8.155 -8.1602 -8.1364 c -4.515 0 -8.155 3.64 -8.155 8.155 c 0 2.765 1.365 5.18 3.43 6.65 L 30.785 44.085 C 28.125 42.37 26.375 39.395 26.375 36 C 26.375 30.68 30.68 26.375 36 26.375 Z m 0 3.71 c 3.29 0 5.915 2.66 5.915 5.915 c 0 1.785 -0.77 3.36 -1.995 4.445 l -0.56 -1.54 c 0.665 -0.77 1.085 -1.785 1.085 -2.905 c 0 -2.45 -1.995 -4.445 -4.445 -4.445 c -2.45 0 -4.445 1.995 -4.445 4.445 c 0 1.12 0.385 2.1 1.085 2.905 l -0.56 1.54 C 30.855 39.36 30.085 37.785 30.085 36 c 0 -3.29 2.66 -5.915 5.915 -5.915 z m 0 8.715 l -1.715 4.83 c 0.56 0.105 1.12 0.175 1.715 0.175 c 0.595 0 1.155 -0.07 1.715 -0.175 z m -2.31 6.58 l -0.98 2.8 a 12.6 12.6 90 0 0 3.29 0.455 a 12.6 12.6 90 0 0 3.29 -0.455 l -0.98 -2.8 c -0.735 0.175 -1.505 0.28 -2.31 0.28 c -0.805 0 -1.575 -0.105 -2.31 -0.28 z" /> + </group> + </vector> + </aapt:attr> + + <target android:name="icon"> + <aapt:attr name="android:animation"> + <objectAnimator + android:duration="1000" + android:repeatCount="infinite" + android:repeatMode="reverse"> + <propertyValuesHolder android:propertyName="scaleX" + android:valueType="floatType" + android:valueFrom="1.0" + android:valueTo="1.1" /> + <propertyValuesHolder android:propertyName="scaleY" + android:valueType="floatType" + android:valueFrom="1.0" + android:valueTo="1.1" /> + </objectAnimator> + </aapt:attr> + </target> + +</animated-vector>
\ No newline at end of file diff --git a/core/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/core/src/main/res/mipmap-anydpi-v26/ic_launcher.xml index 4ae7d1237..728c403fb 100644 --- a/core/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/core/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -2,4 +2,5 @@ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <background android:drawable="@mipmap/ic_launcher_background"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/> + <monochrome android:drawable="@drawable/ic_monochrome" /> </adaptive-icon>
\ No newline at end of file diff --git a/core/src/main/res/mipmap-hdpi/ic_launcher.png b/core/src/main/res/mipmap-hdpi/ic_launcher.png Binary files differindex 9c922ce1c..efda51a0e 100644 --- a/core/src/main/res/mipmap-hdpi/ic_launcher.png +++ b/core/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/core/src/main/res/mipmap-hdpi/ic_launcher_background.png b/core/src/main/res/mipmap-hdpi/ic_launcher_background.png Binary files differindex 92b669f3e..3b5e329e5 100644 --- a/core/src/main/res/mipmap-hdpi/ic_launcher_background.png +++ b/core/src/main/res/mipmap-hdpi/ic_launcher_background.png diff --git a/core/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-hdpi/ic_launcher_foreground.png Binary files differindex b487de37d..b52ad5dd6 100644 --- a/core/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +++ b/core/src/main/res/mipmap-hdpi/ic_launcher_foreground.png diff --git a/core/src/main/res/mipmap-mdpi/ic_launcher.png b/core/src/main/res/mipmap-mdpi/ic_launcher.png Binary files differindex ef741cee7..9c2a5867a 100644 --- a/core/src/main/res/mipmap-mdpi/ic_launcher.png +++ b/core/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/core/src/main/res/mipmap-mdpi/ic_launcher_background.png b/core/src/main/res/mipmap-mdpi/ic_launcher_background.png Binary files differindex 7f16ee8ba..38164a0b0 100644 --- a/core/src/main/res/mipmap-mdpi/ic_launcher_background.png +++ b/core/src/main/res/mipmap-mdpi/ic_launcher_background.png diff --git a/core/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-mdpi/ic_launcher_foreground.png Binary files differindex 4003de0ea..236f6fca2 100644 --- a/core/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +++ b/core/src/main/res/mipmap-mdpi/ic_launcher_foreground.png diff --git a/core/src/main/res/mipmap-xhdpi/ic_launcher.png b/core/src/main/res/mipmap-xhdpi/ic_launcher.png Binary files differindex b05c50d44..a58294b36 100644 --- a/core/src/main/res/mipmap-xhdpi/ic_launcher.png +++ b/core/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/core/src/main/res/mipmap-xhdpi/ic_launcher_background.png b/core/src/main/res/mipmap-xhdpi/ic_launcher_background.png Binary files differindex 170e2f72e..7bf8bf8a7 100644 --- a/core/src/main/res/mipmap-xhdpi/ic_launcher_background.png +++ b/core/src/main/res/mipmap-xhdpi/ic_launcher_background.png diff --git a/core/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png Binary files differindex 0cd7ee47a..03cf16e53 100644 --- a/core/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +++ b/core/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png diff --git a/core/src/main/res/mipmap-xxhdpi/ic_launcher.png b/core/src/main/res/mipmap-xxhdpi/ic_launcher.png Binary files differindex 9d0116d26..0245e6394 100644 --- a/core/src/main/res/mipmap-xxhdpi/ic_launcher.png +++ b/core/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/core/src/main/res/mipmap-xxhdpi/ic_launcher_background.png b/core/src/main/res/mipmap-xxhdpi/ic_launcher_background.png Binary files differindex adf055c06..e1982893d 100644 --- a/core/src/main/res/mipmap-xxhdpi/ic_launcher_background.png +++ b/core/src/main/res/mipmap-xxhdpi/ic_launcher_background.png diff --git a/core/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png Binary files differindex fb39d3c71..e6a824939 100644 --- a/core/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +++ b/core/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png diff --git a/core/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/core/src/main/res/mipmap-xxxhdpi/ic_launcher.png Binary files differindex 3c61e7dfc..998bfdea8 100644 --- a/core/src/main/res/mipmap-xxxhdpi/ic_launcher.png +++ b/core/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/core/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png b/core/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png Binary files differindex f0be130f2..8db9c15a8 100644 --- a/core/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png +++ b/core/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png diff --git a/core/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/core/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png Binary files differindex c3fd1eb5a..ccc00751c 100644 --- a/core/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +++ b/core/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png diff --git a/core/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml index 1e467802e..19a7c0fde 100644 --- a/core/src/main/res/values/colors.xml +++ b/core/src/main/res/values/colors.xml @@ -23,6 +23,4 @@ <color name="accent_light">#0078C2</color> <color name="accent_dark">#3D8BFF</color> - <color name="icon_background_gradient_start">#0ba2ff</color> - <color name="icon_background_gradient_end">#0878ff</color> </resources> diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index b9bb1689a..d436abaeb 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -209,11 +209,16 @@ <item name="android:windowExitAnimation">@android:anim/fade_out</item> </style> - <style name="Theme.AntennaPod.Splash" parent="Theme.Material3.Dark.NoActionBar"> - <item name="android:windowBackground">@drawable/bg_splash</item> - <item name="colorPrimary">@color/icon_background_gradient_start</item> - <item name="colorPrimaryDark">@color/icon_background_gradient_start</item> - <item name="android:navigationBarColor">@color/icon_background_gradient_end</item> + <style name="Theme.AntennaPod.Splash" parent="Theme.SplashScreen"> + <item name="android:navigationBarColor">@android:color/transparent</item> + <item name="android:statusBarColor">@android:color/transparent</item> + <item name="android:windowLightStatusBar" tools:targetApi="M">false</item> + <item name="android:fitsSystemWindows">true</item> + <item name="android:windowTranslucentStatus">false</item> + <item name="android:windowTranslucentNavigation">false</item> + <item name="android:windowDrawsSystemBarBackgrounds">true</item> + <item name="android:enforceNavigationBarContrast" tools:targetApi="q">false</item> + <item name="windowSplashScreenAnimatedIcon">@drawable/splash_icon</item> </style> <style name="Theme.AntennaPod.VideoPlayer" parent="@style/Theme.AntennaPod.Dark"> |