Procházet zdrojové kódy

Update icon to use square where possible

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic před 7 roky
rodič
revize
a6a3f44534

+ 10 - 5
app/src/main/AndroidManifest.xml

@@ -2,8 +2,12 @@
           xmlns:tools="http://schemas.android.com/tools"
           package="com.nextcloud.talk">
 
-    <uses-feature android:name="android.hardware.camera.any" android:required="false"/>
-    <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
+    <uses-feature
+        android:name="android.hardware.camera.any"
+        android:required="false"/>
+    <uses-feature
+        android:name="android.hardware.camera.autofocus"
+        android:required="false"/>
     <uses-feature
         android:glEsVersion="0x00020000"
         android:required="true"/>
@@ -19,15 +23,16 @@
     <uses-permission android:name="android.permission.WAKE_LOCK"/>
 
     <application
-        tools:replace="label, icon, theme, name, allowBackup"
         android:name=".application.NextcloudTalkApplication"
         android:allowBackup="true"
         android:fullBackupContent="@xml/backup_config"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/nc_app_name"
         android:networkSecurityConfig="@xml/network_security_config"
+        android:roundIcon="@mipmap/ic_launcher_round"
         android:supportsRtl="true"
-        android:theme="@style/AppTheme">
+        android:theme="@style/AppTheme"
+        tools:replace="label, icon, roundIcon, theme, name, allowBackup">
 
         <activity
             android:name=".activities.MainActivity"
@@ -42,8 +47,8 @@
 
         <activity
             android:name=".activities.CallActivity"
-            android:launchMode="singleTask"
             android:configChanges="orientation|screenSize"
+            android:launchMode="singleTask"
             />
 
         <service

binární
app/src/main/ic_launcher-web.png


+ 11 - 8
app/src/main/res/drawable/ic_launcher_foreground.xml

@@ -1,13 +1,16 @@
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
         android:width="108dp"
         android:height="108dp"
-        android:viewportWidth="1680"
-        android:viewportHeight="1680">
-    <group android:translateX="168"
-            android:translateY="168">
-        <path
-            android:pathData="M672,347C493.7,347 347,493.7 347,672C347,672 347,672 347,672C347,850.2 493.7,996.9 672,996.9C731.4,996.8 789.7,980.3 840.5,949.4C880.5,965.2 969.9,1012.3 991.2,992C1013.5,970.7 965.1,870.7 953.5,833.6C981.8,784.4 996.8,728.7 996.9,672C996.9,493.7 850.2,347 672,347L672,347ZM672,470.5C782.5,470.5 873.5,561.5 873.5,672C873.5,782.6 782.5,873.5 672,873.5C561.5,873.5 470.5,782.6 470.5,672C470.5,672 470.5,672 470.5,672C470.5,561.5 561.5,470.5 672,470.5L672,470.5Z"
-            android:fillType="nonZero"
-            android:fillColor="#ffffff"/>
+        android:viewportWidth="2100"
+        android:viewportHeight="2100">
+    <group android:translateX="210"
+            android:translateY="210">
+        <group android:translateX="168"
+                android:translateY="168">
+            <path
+                android:pathData="M672,347C493.7,347 347,493.7 347,672C347,672 347,672 347,672C347,850.2 493.7,996.9 672,996.9C731.4,996.8 789.7,980.3 840.5,949.4C880.5,965.2 969.9,1012.3 991.2,992C1013.5,970.7 965.1,870.7 953.5,833.6C981.8,784.4 996.8,728.7 996.9,672C996.9,493.7 850.2,347 672,347L672,347ZM672,470.5C782.5,470.5 873.5,561.5 873.5,672C873.5,782.6 782.5,873.5 672,873.5C561.5,873.5 470.5,782.6 470.5,672C470.5,672 470.5,672 470.5,672C470.5,561.5 561.5,470.5 672,470.5L672,470.5Z"
+                android:fillType="nonZero"
+                android:fillColor="#ffffff"/>
+        </group>
     </group>
 </vector>

+ 1 - 1
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

@@ -2,4 +2,4 @@
 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
     <background android:drawable="@drawable/ic_launcher_background"/>
     <foreground android:drawable="@drawable/ic_launcher_foreground"/>
-</adaptive-icon>
+</adaptive-icon>

+ 5 - 0
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

@@ -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="@drawable/ic_launcher_background"/>
+    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
+</adaptive-icon>

binární
app/src/main/res/mipmap-hdpi/ic_launcher.png


binární
app/src/main/res/mipmap-hdpi/ic_launcher_round.png


binární
app/src/main/res/mipmap-mdpi/ic_launcher.png


binární
app/src/main/res/mipmap-mdpi/ic_launcher_round.png


binární
app/src/main/res/mipmap-xhdpi/ic_launcher.png


binární
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png


binární
app/src/main/res/mipmap-xxhdpi/ic_launcher.png


binární
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png


binární
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png


binární
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png