summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsher Simonds <dayanhammer@gmail.com>2018-02-12 09:47:16 (GMT)
committerBruno Martins <bgcngm@gmail.com>2019-10-20 13:00:37 (GMT)
commitd4c4dec44e74ce97172af602f3991ecef22c858f (patch)
tree9b78614ed6bb9843b2becd67b19faac6480334c6
parentc3c09383ec556d4376a40a18ff5517605734ae98 (diff)
downloadandroid_packages_apps_Trebuchet-d4c4dec44e74ce97172af602f3991ecef22c858f.zip
android_packages_apps_Trebuchet-d4c4dec44e74ce97172af602f3991ecef22c858f.tar.gz
android_packages_apps_Trebuchet-d4c4dec44e74ce97172af602f3991ecef22c858f.tar.bz2
Trebuchet: adaptive icon
Change-Id: I84662d7cb35ed751c61c6223dc02f256f5ab3311 Signed-off-by: Joey <joey@lineageos.org>
-rw-r--r--AndroidManifest.xml5
-rw-r--r--quickstep/AndroidManifest.xml5
-rw-r--r--res/mipmap-anydpi/ic_launcher.xml20
-rw-r--r--res/mipmap-hdpi/ic_background.pngbin0 -> 6132 bytes
-rw-r--r--res/mipmap-hdpi/ic_foreground.pngbin0 -> 9469 bytes
-rw-r--r--res/mipmap-mdpi/ic_background.pngbin0 -> 3681 bytes
-rw-r--r--res/mipmap-mdpi/ic_foreground.pngbin0 -> 4648 bytes
-rw-r--r--res/mipmap-xhdpi/ic_background.pngbin0 -> 9013 bytes
-rw-r--r--res/mipmap-xhdpi/ic_foreground.pngbin0 -> 15658 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_background.pngbin0 -> 16042 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_foreground.pngbin0 -> 32584 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_background.pngbin0 -> 24170 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_foreground.pngbin0 -> 54234 bytes
13 files changed, 26 insertions, 4 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 853d04c..dfdf8bb 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -32,13 +32,14 @@
android:fullBackupOnly="true"
android:fullBackupContent="@xml/backupscheme"
android:hardwareAccelerated="true"
- android:icon="@drawable/ic_launcher_home"
+ android:icon="@mipmap/ic_launcher"
android:label="@string/derived_app_name"
android:theme="@style/AppTheme"
android:largeHeap="@bool/config_largeHeap"
android:restoreAnyVersion="true"
android:supportsRtl="true"
- tools:ignore="GoogleAppIndexingWarning">
+ tools:ignore="GoogleAppIndexingWarning"
+ tools:replace="android:icon">
<!--
Main launcher activity. When extending only change the name, and keep all the
diff --git a/quickstep/AndroidManifest.xml b/quickstep/AndroidManifest.xml
index 332e0fa..88af0f9 100644
--- a/quickstep/AndroidManifest.xml
+++ b/quickstep/AndroidManifest.xml
@@ -29,12 +29,13 @@
android:fullBackupOnly="true"
android:fullBackupContent="@xml/backupscheme"
android:hardwareAccelerated="true"
- android:icon="@drawable/ic_launcher_home"
+ android:icon="@mipmap/ic_launcher"
android:label="@string/derived_app_name"
android:theme="@style/AppTheme"
android:largeHeap="@bool/config_largeHeap"
android:restoreAnyVersion="true"
- android:supportsRtl="true" >
+ android:supportsRtl="true"
+ tools:replace="android:icon">
<service
android:name="com.android.quickstep.TouchInteractionService"
diff --git a/res/mipmap-anydpi/ic_launcher.xml b/res/mipmap-anydpi/ic_launcher.xml
new file mode 100644
index 0000000..d8649ba
--- /dev/null
+++ b/res/mipmap-anydpi/ic_launcher.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2018 The LineageOS Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@mipmap/ic_background"/>
+ <foreground android:drawable="@mipmap/ic_foreground"/>
+</adaptive-icon>
+
diff --git a/res/mipmap-hdpi/ic_background.png b/res/mipmap-hdpi/ic_background.png
new file mode 100644
index 0000000..ced9571
--- /dev/null
+++ b/res/mipmap-hdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-hdpi/ic_foreground.png b/res/mipmap-hdpi/ic_foreground.png
new file mode 100644
index 0000000..f5d06f7
--- /dev/null
+++ b/res/mipmap-hdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-mdpi/ic_background.png b/res/mipmap-mdpi/ic_background.png
new file mode 100644
index 0000000..917584c
--- /dev/null
+++ b/res/mipmap-mdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-mdpi/ic_foreground.png b/res/mipmap-mdpi/ic_foreground.png
new file mode 100644
index 0000000..31ff063
--- /dev/null
+++ b/res/mipmap-mdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_background.png b/res/mipmap-xhdpi/ic_background.png
new file mode 100644
index 0000000..9230c6e
--- /dev/null
+++ b/res/mipmap-xhdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_foreground.png b/res/mipmap-xhdpi/ic_foreground.png
new file mode 100644
index 0000000..54e5c68
--- /dev/null
+++ b/res/mipmap-xhdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-xxhdpi/ic_background.png b/res/mipmap-xxhdpi/ic_background.png
new file mode 100644
index 0000000..6d698ff
--- /dev/null
+++ b/res/mipmap-xxhdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-xxhdpi/ic_foreground.png b/res/mipmap-xxhdpi/ic_foreground.png
new file mode 100644
index 0000000..963bf36
--- /dev/null
+++ b/res/mipmap-xxhdpi/ic_foreground.png
Binary files differ
diff --git a/res/mipmap-xxxhdpi/ic_background.png b/res/mipmap-xxxhdpi/ic_background.png
new file mode 100644
index 0000000..30b258a
--- /dev/null
+++ b/res/mipmap-xxxhdpi/ic_background.png
Binary files differ
diff --git a/res/mipmap-xxxhdpi/ic_foreground.png b/res/mipmap-xxxhdpi/ic_foreground.png
new file mode 100644
index 0000000..a483fe6
--- /dev/null
+++ b/res/mipmap-xxxhdpi/ic_foreground.png
Binary files differ