summaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorShinichiro Fujiwara <mamehacker@gmail.com>2020-03-30 07:39:52 +0900
committerGitHub <noreply@github.com>2020-03-30 00:39:52 +0200
commit001583a4e0eaa7f90fb2c0f7d3cfa19f7ffb5ae3 (patch)
treefb53e160c613baacb4d0010e369e275fee35d28b /core/src/main
parentec0255b7434a15264286863e21bd00c089fc55de (diff)
downloadAntennaPod-001583a4e0eaa7f90fb2c0f7d3cfa19f7ffb5ae3.zip
App shortcuts (#3748)
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/res/drawable-anydpi-v26/ic_feed_shortcut.xml9
-rw-r--r--core/src/main/res/drawable-anydpi-v26/ic_folder_shortcut.xml9
-rw-r--r--core/src/main/res/drawable-anydpi-v26/ic_playlist_shortcut.xml9
-rw-r--r--core/src/main/res/drawable-anydpi-v26/ic_refresh_shortcut.xml9
-rw-r--r--core/src/main/res/drawable/ic_feed_shortcut.xml7
-rw-r--r--core/src/main/res/drawable/ic_folder_shortcut.xml7
-rw-r--r--core/src/main/res/drawable/ic_playlist_shortcut.xml7
-rw-r--r--core/src/main/res/drawable/ic_refresh_shortcut.xml7
-rw-r--r--core/src/main/res/drawable/ic_shortcut_background.xml11
-rw-r--r--core/src/main/res/values/colors.xml1
10 files changed, 76 insertions, 0 deletions
diff --git a/core/src/main/res/drawable-anydpi-v26/ic_feed_shortcut.xml b/core/src/main/res/drawable-anydpi-v26/ic_feed_shortcut.xml
new file mode 100644
index 000000000..ae080d335
--- /dev/null
+++ b/core/src/main/res/drawable-anydpi-v26/ic_feed_shortcut.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/grey100" />
+ <foreground>
+ <inset
+ android:drawable="@drawable/ic_feed_black"
+ android:inset="33.3%" />
+ </foreground>
+</adaptive-icon> \ No newline at end of file
diff --git a/core/src/main/res/drawable-anydpi-v26/ic_folder_shortcut.xml b/core/src/main/res/drawable-anydpi-v26/ic_folder_shortcut.xml
new file mode 100644
index 000000000..0ee30ab73
--- /dev/null
+++ b/core/src/main/res/drawable-anydpi-v26/ic_folder_shortcut.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/grey100" />
+ <foreground>
+ <inset
+ android:drawable="@drawable/ic_folder_black"
+ android:inset="33.3%" />
+ </foreground>
+</adaptive-icon> \ No newline at end of file
diff --git a/core/src/main/res/drawable-anydpi-v26/ic_playlist_shortcut.xml b/core/src/main/res/drawable-anydpi-v26/ic_playlist_shortcut.xml
new file mode 100644
index 000000000..60f95db32
--- /dev/null
+++ b/core/src/main/res/drawable-anydpi-v26/ic_playlist_shortcut.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/grey100" />
+ <foreground>
+ <inset
+ android:drawable="@drawable/ic_playlist_black"
+ android:inset="33.3%" />
+ </foreground>
+</adaptive-icon> \ No newline at end of file
diff --git a/core/src/main/res/drawable-anydpi-v26/ic_refresh_shortcut.xml b/core/src/main/res/drawable-anydpi-v26/ic_refresh_shortcut.xml
new file mode 100644
index 000000000..1a7752443
--- /dev/null
+++ b/core/src/main/res/drawable-anydpi-v26/ic_refresh_shortcut.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/grey100" />
+ <foreground>
+ <inset
+ android:drawable="@drawable/ic_refresh_black"
+ android:inset="33.3%" />
+ </foreground>
+</adaptive-icon> \ No newline at end of file
diff --git a/core/src/main/res/drawable/ic_feed_shortcut.xml b/core/src/main/res/drawable/ic_feed_shortcut.xml
new file mode 100644
index 000000000..fa5a0267c
--- /dev/null
+++ b/core/src/main/res/drawable/ic_feed_shortcut.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/ic_shortcut_background" />
+ <item
+ android:drawable="@drawable/ic_feed_black"
+ android:gravity="center" />
+</layer-list> \ No newline at end of file
diff --git a/core/src/main/res/drawable/ic_folder_shortcut.xml b/core/src/main/res/drawable/ic_folder_shortcut.xml
new file mode 100644
index 000000000..2906c2795
--- /dev/null
+++ b/core/src/main/res/drawable/ic_folder_shortcut.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/ic_shortcut_background" />
+ <item
+ android:drawable="@drawable/ic_folder_black"
+ android:gravity="center" />
+</layer-list> \ No newline at end of file
diff --git a/core/src/main/res/drawable/ic_playlist_shortcut.xml b/core/src/main/res/drawable/ic_playlist_shortcut.xml
new file mode 100644
index 000000000..d2b5815d9
--- /dev/null
+++ b/core/src/main/res/drawable/ic_playlist_shortcut.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/ic_shortcut_background" />
+ <item
+ android:drawable="@drawable/ic_playlist_black"
+ android:gravity="center" />
+</layer-list>
diff --git a/core/src/main/res/drawable/ic_refresh_shortcut.xml b/core/src/main/res/drawable/ic_refresh_shortcut.xml
new file mode 100644
index 000000000..2f1b37337
--- /dev/null
+++ b/core/src/main/res/drawable/ic_refresh_shortcut.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/ic_shortcut_background" />
+ <item
+ android:drawable="@drawable/ic_refresh_black"
+ android:gravity="center" />
+</layer-list> \ No newline at end of file
diff --git a/core/src/main/res/drawable/ic_shortcut_background.xml b/core/src/main/res/drawable/ic_shortcut_background.xml
new file mode 100644
index 000000000..9327150d0
--- /dev/null
+++ b/core/src/main/res/drawable/ic_shortcut_background.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<inset xmlns:android="http://schemas.android.com/apk/res/android"
+ android:inset="2dp">
+
+ <shape android:shape="oval">
+ <solid android:color="@color/grey100" />
+ <size
+ android:width="44dp"
+ android:height="44dp" />
+ </shape>
+</inset>
diff --git a/core/src/main/res/values/colors.xml b/core/src/main/res/values/colors.xml
index efbc75f34..d3813235f 100644
--- a/core/src/main/res/values/colors.xml
+++ b/core/src/main/res/values/colors.xml
@@ -2,6 +2,7 @@
<resources>
<color name="white">#FFFFFF</color>
+ <color name="grey100">#f5f5f5</color>
<color name="grey600">#757575</color>
<color name="light_gray">#bfbfbf</color>
<color name="black">#000000</color>