Unciv Adaptive Android Icon (#6672)
* Use both icon and roundIcon properties * Studio-generated Android Icon * Studio-generated Android Icon to fastlane Co-authored-by: JackRainy <JackRainy@users.noreply.github.com>
@ -12,7 +12,8 @@
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/uncivicon2"
|
||||
android:icon="@mipmap/uncivicon"
|
||||
android:roundIcon="@mipmap/uncivicon_round"
|
||||
android:label="@string/app_name"
|
||||
android:isGame="true"
|
||||
android:appCategory="game"
|
||||
|
Before Width: | Height: | Size: 5.4 KiB |
BIN
android/res/drawable-hdpi/uncivnotification.png
Normal file
After Width: | Height: | Size: 399 B |
Before Width: | Height: | Size: 3.3 KiB |
BIN
android/res/drawable-mdpi/uncivnotification.png
Normal file
After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 8.0 KiB |
BIN
android/res/drawable-xhdpi/uncivnotification.png
Normal file
After Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 13 KiB |
BIN
android/res/drawable-xxhdpi/uncivnotification.png
Normal file
After Width: | Height: | Size: 723 B |
Before Width: | Height: | Size: 19 KiB |
BIN
android/res/drawable-xxxhdpi/uncivnotification.png
Normal file
After Width: | Height: | Size: 952 B |
5
android/res/mipmap-anydpi-v26/uncivicon.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/uncivicon_back"/>
|
||||
<foreground android:drawable="@mipmap/uncivicon_fore"/>
|
||||
</adaptive-icon>
|
5
android/res/mipmap-anydpi-v26/uncivicon_round.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/uncivicon_back"/>
|
||||
<foreground android:drawable="@mipmap/uncivicon_fore"/>
|
||||
</adaptive-icon>
|
BIN
android/res/mipmap-hdpi/uncivicon.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
android/res/mipmap-hdpi/uncivicon_fore.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
android/res/mipmap-hdpi/uncivicon_round.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
android/res/mipmap-mdpi/uncivicon.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
android/res/mipmap-mdpi/uncivicon_fore.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
android/res/mipmap-mdpi/uncivicon_round.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
android/res/mipmap-xhdpi/uncivicon.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
android/res/mipmap-xhdpi/uncivicon_fore.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
android/res/mipmap-xhdpi/uncivicon_round.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
android/res/mipmap-xxhdpi/uncivicon.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
android/res/mipmap-xxhdpi/uncivicon_fore.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
android/res/mipmap-xxhdpi/uncivicon_round.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
android/res/mipmap-xxxhdpi/uncivicon.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
android/res/mipmap-xxxhdpi/uncivicon_fore.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
android/res/mipmap-xxxhdpi/uncivicon_round.png
Normal file
After Width: | Height: | Size: 24 KiB |
4
android/res/values/uncivicon_back.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="uncivicon_back">#ECDFC6</color>
|
||||
</resources>
|
@ -128,7 +128,7 @@ class MultiplayerTurnCheckWorker(appContext: Context, workerParams: WorkerParame
|
||||
appContext.resources.getString(R.string.Notify_Persist_Long_P2) + " " + checkPeriod + " "
|
||||
+ appContext.resources.getString(R.string.Notify_Persist_Long_P3)
|
||||
+ " " + appContext.resources.getString(R.string.Notify_Persist_Long_P4)))
|
||||
.setSmallIcon(R.drawable.uncivicon2)
|
||||
.setSmallIcon(R.drawable.uncivnotification)
|
||||
.setContentIntent(pendingIntent)
|
||||
.setCategory(NotificationCompat.CATEGORY_SERVICE)
|
||||
.setOnlyAlertOnce(true)
|
||||
@ -156,7 +156,7 @@ class MultiplayerTurnCheckWorker(appContext: Context, workerParams: WorkerParame
|
||||
// without at least vibrate, some Android versions don't show a heads-up notification
|
||||
.setDefaults(DEFAULT_VIBRATE)
|
||||
.setLights(Color.YELLOW, 300, 100)
|
||||
.setSmallIcon(R.drawable.uncivicon2)
|
||||
.setSmallIcon(R.drawable.uncivnotification)
|
||||
.setContentIntent(pendingIntent)
|
||||
.setCategory(NotificationCompat.CATEGORY_SOCIAL)
|
||||
.setOngoing(false)
|
||||
@ -348,7 +348,7 @@ class MultiplayerTurnCheckWorker(appContext: Context, workerParams: WorkerParame
|
||||
.setPriority(NotificationManagerCompat.IMPORTANCE_DEFAULT) // No direct user action expected
|
||||
.setContentTitle(applicationContext.resources.getString(R.string.Notify_Error_Short))
|
||||
.setContentText(applicationContext.resources.getString(R.string.Notify_Error_Long))
|
||||
.setSmallIcon(R.drawable.uncivicon2)
|
||||
.setSmallIcon(R.drawable.uncivnotification)
|
||||
// without at least vibrate, some Android versions don't show a heads-up notification
|
||||
.setDefaults(DEFAULT_VIBRATE)
|
||||
.setLights(Color.YELLOW, 300, 100)
|
||||
|
BIN
android/uncivicon-playstore.png
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
extraImages/Unciv icon v5.png
Normal file
After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 24 KiB |