summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2017-08-15 11:28:11 -0700
committerHyunyoung Song <hyunyoungs@google.com>2017-08-15 11:32:56 -0700
commite1febea9aa87724be78e3a24e8fe2d4ee1354c51 (patch)
tree206fa5df272ce4049b378ff0db1fdde7b377778b
parentae8462585cf6b045dae42e8321d5dc44c41eeb75 (diff)
downloadandroid_packages_apps_Gallery2-e1febea9aa87724be78e3a24e8fe2d4ee1354c51.tar.gz
android_packages_apps_Gallery2-e1febea9aa87724be78e3a24e8fe2d4ee1354c51.tar.bz2
android_packages_apps_Gallery2-e1febea9aa87724be78e3a24e8fe2d4ee1354c51.zip
Adaptive icon for Gallery2 AOSP
Bug: 64333648 Test: manual Change-Id: Ifec26c6e5598ab31a73e4e7f090a843f10f63fef
-rw-r--r--res/mipmap-anydpi/ic_launcher_gallery.xml19
-rw-r--r--res/mipmap-hdpi/ic_launcher_gallery.pngbin20425 -> 0 bytes
-rw-r--r--res/mipmap-hdpi/ic_launcher_gallery_foreground.pngbin0 -> 7796 bytes
-rw-r--r--res/mipmap-mdpi/ic_launcher_gallery.pngbin17130 -> 0 bytes
-rw-r--r--res/mipmap-mdpi/ic_launcher_gallery_foreground.pngbin0 -> 5140 bytes
-rw-r--r--res/mipmap-xhdpi/ic_launcher_gallery.pngbin24283 -> 0 bytes
-rw-r--r--res/mipmap-xhdpi/ic_launcher_gallery_foreground.pngbin0 -> 9392 bytes
-rw-r--r--res/mipmap-xxhdpi/ic_launcher_gallery_foreground.pngbin0 -> 13209 bytes
-rw-r--r--res/mipmap-xxxhdpi/ic_launcher_gallery_foreground.pngbin0 -> 17147 bytes
-rw-r--r--res/values/colors.xml1
10 files changed, 20 insertions, 0 deletions
diff --git a/res/mipmap-anydpi/ic_launcher_gallery.xml b/res/mipmap-anydpi/ic_launcher_gallery.xml
new file mode 100644
index 000000000..c4e9e755e
--- /dev/null
+++ b/res/mipmap-anydpi/ic_launcher_gallery.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 The Android Open Source 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="@color/ic_launcher_gallery_background"/>
+ <foreground android:drawable="@mipmap/ic_launcher_gallery_foreground"/>
+</adaptive-icon> \ No newline at end of file
diff --git a/res/mipmap-hdpi/ic_launcher_gallery.png b/res/mipmap-hdpi/ic_launcher_gallery.png
deleted file mode 100644
index 23ea99890..000000000
--- a/res/mipmap-hdpi/ic_launcher_gallery.png
+++ /dev/null
Binary files differ
diff --git a/res/mipmap-hdpi/ic_launcher_gallery_foreground.png b/res/mipmap-hdpi/ic_launcher_gallery_foreground.png
new file mode 100644
index 000000000..6db33c07e
--- /dev/null
+++ b/res/mipmap-hdpi/ic_launcher_gallery_foreground.png
Binary files differ
diff --git a/res/mipmap-mdpi/ic_launcher_gallery.png b/res/mipmap-mdpi/ic_launcher_gallery.png
deleted file mode 100644
index e1a99498d..000000000
--- a/res/mipmap-mdpi/ic_launcher_gallery.png
+++ /dev/null
Binary files differ
diff --git a/res/mipmap-mdpi/ic_launcher_gallery_foreground.png b/res/mipmap-mdpi/ic_launcher_gallery_foreground.png
new file mode 100644
index 000000000..de2c3bf3c
--- /dev/null
+++ b/res/mipmap-mdpi/ic_launcher_gallery_foreground.png
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_launcher_gallery.png b/res/mipmap-xhdpi/ic_launcher_gallery.png
deleted file mode 100644
index 79544a2b6..000000000
--- a/res/mipmap-xhdpi/ic_launcher_gallery.png
+++ /dev/null
Binary files differ
diff --git a/res/mipmap-xhdpi/ic_launcher_gallery_foreground.png b/res/mipmap-xhdpi/ic_launcher_gallery_foreground.png
new file mode 100644
index 000000000..fb79d35c3
--- /dev/null
+++ b/res/mipmap-xhdpi/ic_launcher_gallery_foreground.png
Binary files differ
diff --git a/res/mipmap-xxhdpi/ic_launcher_gallery_foreground.png b/res/mipmap-xxhdpi/ic_launcher_gallery_foreground.png
new file mode 100644
index 000000000..691a1cafe
--- /dev/null
+++ b/res/mipmap-xxhdpi/ic_launcher_gallery_foreground.png
Binary files differ
diff --git a/res/mipmap-xxxhdpi/ic_launcher_gallery_foreground.png b/res/mipmap-xxxhdpi/ic_launcher_gallery_foreground.png
new file mode 100644
index 000000000..529f0ffab
--- /dev/null
+++ b/res/mipmap-xxxhdpi/ic_launcher_gallery_foreground.png
Binary files differ
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 4fe918094..f1fa300b4 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -15,6 +15,7 @@
-->
<resources>
<color name="default_background">#000</color>
+ <color name="ic_launcher_gallery_background">#4285f4</color>
<!-- configuration for album set page -->
<color name="albumset_background">#1A1A1A</color>