summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsher Simonds <dayanhammer@gmail.com>2018-02-12 10:47:16 +0100
committerMichael Bestas <mkbestas@lineageos.org>2019-12-12 15:18:16 +0200
commit0070ea2ec4c457cec3a7db39c9e8483c33ea3508 (patch)
tree4da00ebd81a31b244b9a9c8cf002f8e5c1dc7d1b
parent55924ba82b945543ada9d6ef24c6bc97b847673a (diff)
downloadandroid_packages_apps_Trebuchet-0070ea2ec4c457cec3a7db39c9e8483c33ea3508.tar.gz
android_packages_apps_Trebuchet-0070ea2ec4c457cec3a7db39c9e8483c33ea3508.tar.bz2
android_packages_apps_Trebuchet-0070ea2ec4c457cec3a7db39c9e8483c33ea3508.zip
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 853d04cbb..dfdf8bb53 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 546548036..b28bcdc84 100644
--- a/quickstep/AndroidManifest.xml
+++ b/quickstep/AndroidManifest.xml
@@ -30,12 +30,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 000000000..d8649ba56
--- /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 000000000..ced957179
--- /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 000000000..f5d06f7ae
--- /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 000000000..917584c06
--- /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 000000000..31ff06305
--- /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 000000000..9230c6ef6
--- /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 000000000..54e5c68b3
--- /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 000000000..6d698ffe4
--- /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 000000000..963bf3642
--- /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 000000000..30b258ad5
--- /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 000000000..a483fe640
--- /dev/null
+++ b/res/mipmap-xxxhdpi/ic_foreground.png
Binary files differ