summaryrefslogtreecommitdiff
path: root/ui/widget
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-03-17 12:06:41 +0100
committerGitHub <noreply@github.com>2024-03-17 12:06:41 +0100
commit17f5a5d1b85f07bada36abe6541ed0fc1e1d83a2 (patch)
treee0813fb457b766f6edc532ad28a63f200f629763 /ui/widget
parent8dc8cc64a8a6de3adfba1aaf0a0306f90727a2c4 (diff)
downloadAntennaPod-17f5a5d1b85f07bada36abe6541ed0fc1e1d83a2.zip
Move notification icons and widget icons to separate modules (#6995)
Diffstat (limited to 'ui/widget')
-rw-r--r--ui/widget/README.md4
-rw-r--r--ui/widget/build.gradle17
-rw-r--r--ui/widget/src/main/res/drawable/ic_widget_fast_forward.xml7
-rw-r--r--ui/widget/src/main/res/drawable/ic_widget_fast_rewind.xml7
-rw-r--r--ui/widget/src/main/res/drawable/ic_widget_pause.xml7
-rw-r--r--ui/widget/src/main/res/drawable/ic_widget_play.xml7
-rw-r--r--ui/widget/src/main/res/drawable/ic_widget_playback_speed.xml16
-rw-r--r--ui/widget/src/main/res/drawable/ic_widget_skip.xml7
8 files changed, 72 insertions, 0 deletions
diff --git a/ui/widget/README.md b/ui/widget/README.md
new file mode 100644
index 000000000..9d07c0eef
--- /dev/null
+++ b/ui/widget/README.md
@@ -0,0 +1,4 @@
+# :ui:widget
+
+This module manages the widget. The icons specified in this module are rasterized to png. This is necessary to support old Android versions that do not support VectorDrawables. This is only needed for external icons - for the icons within the app, appcompat handles drawing the vectors.
+
diff --git a/ui/widget/build.gradle b/ui/widget/build.gradle
new file mode 100644
index 000000000..f474b0028
--- /dev/null
+++ b/ui/widget/build.gradle
@@ -0,0 +1,17 @@
+plugins {
+ id("com.android.library")
+}
+apply from: "../../common.gradle"
+
+android {
+ namespace "de.danoeh.antennapod.ui.widget"
+
+ defaultConfig {
+ vectorDrawables.useSupportLibrary false
+ vectorDrawables.generatedDensities = ["xhdpi"]
+ }
+}
+
+dependencies {
+ annotationProcessor "androidx.annotation:annotation:$annotationVersion"
+}
diff --git a/ui/widget/src/main/res/drawable/ic_widget_fast_forward.xml b/ui/widget/src/main/res/drawable/ic_widget_fast_forward.xml
new file mode 100644
index 000000000..1511d5150
--- /dev/null
+++ b/ui/widget/src/main/res/drawable/ic_widget_fast_forward.xml
@@ -0,0 +1,7 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportHeight="24.0"
+ android:viewportWidth="24.0">
+ <path android:fillColor="#ffffff" android:pathData="M4,18l8.5,-6L4,6v12zM13,6v12l8.5,-6L13,6z"/>
+</vector>
diff --git a/ui/widget/src/main/res/drawable/ic_widget_fast_rewind.xml b/ui/widget/src/main/res/drawable/ic_widget_fast_rewind.xml
new file mode 100644
index 000000000..36ab723e3
--- /dev/null
+++ b/ui/widget/src/main/res/drawable/ic_widget_fast_rewind.xml
@@ -0,0 +1,7 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportHeight="24.0"
+ android:viewportWidth="24.0">
+ <path android:fillColor="#ffffff" android:pathData="M11,18L11,6l-8.5,6 8.5,6zM11.5,12l8.5,6L20,6l-8.5,6z"/>
+</vector>
diff --git a/ui/widget/src/main/res/drawable/ic_widget_pause.xml b/ui/widget/src/main/res/drawable/ic_widget_pause.xml
new file mode 100644
index 000000000..41c516b55
--- /dev/null
+++ b/ui/widget/src/main/res/drawable/ic_widget_pause.xml
@@ -0,0 +1,7 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportHeight="24.0"
+ android:viewportWidth="24.0">
+ <path android:fillColor="#ffffff" android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"/>
+</vector>
diff --git a/ui/widget/src/main/res/drawable/ic_widget_play.xml b/ui/widget/src/main/res/drawable/ic_widget_play.xml
new file mode 100644
index 000000000..61ad92bcd
--- /dev/null
+++ b/ui/widget/src/main/res/drawable/ic_widget_play.xml
@@ -0,0 +1,7 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportHeight="24.0"
+ android:viewportWidth="24.0">
+ <path android:fillColor="#ffffff" android:pathData="M8,5v14l11,-7z"/>
+</vector>
diff --git a/ui/widget/src/main/res/drawable/ic_widget_playback_speed.xml b/ui/widget/src/main/res/drawable/ic_widget_playback_speed.xml
new file mode 100644
index 000000000..482b6617e
--- /dev/null
+++ b/ui/widget/src/main/res/drawable/ic_widget_playback_speed.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="48dp"
+ android:width="48dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+
+ <group
+ android:pivotX="12"
+ android:pivotY="12"
+ android:scaleX="0.8"
+ android:scaleY="0.8">
+
+ <path android:fillColor="#ffffff" android:pathData="M 12 15.98 A 2.98 2.98 0 0 1 9.02 12.99 c 0 -1.11 0.61 -2.09 1.49 -2.6 L 20.17 4.81 L 14.67 14.34 C 14.17 15.31 13.16 15.98 12 15.98 M 12 3.05 c 1.8 0 3.48 0.5 4.94 1.31 l -2.09 1.2 C 13.99 5.22 12.99 5.04 12 5.04 a 7.96 7.96 0 0 0 -7.96 7.96 c 0 2.2 0.89 4.19 2.33 5.62 h 0.01 c 0.39 0.39 0.39 1.01 0 1.4 c -0.39 0.39 -1.02 0.39 -1.41 0.01 v 0 C 3.17 18.22 2.05 15.74 2.05 12.99 A 9.95 9.95 0 0 1 12 3.05 m 9.95 9.95 c 0 2.75 -1.11 5.23 -2.91 7.03 v 0 c -0.39 0.38 -1.01 0.38 -1.4 -0.01 c -0.39 -0.39 -0.39 -1.01 0 -1.4 v 0 c 1.44 -1.44 2.33 -3.42 2.33 -5.62 c 0 -0.99 -0.19 -1.99 -0.54 -2.88 L 20.62 8.02 c 0.83 1.49 1.32 3.16 1.32 4.97 z" />
+ </group>
+</vector> \ No newline at end of file
diff --git a/ui/widget/src/main/res/drawable/ic_widget_skip.xml b/ui/widget/src/main/res/drawable/ic_widget_skip.xml
new file mode 100644
index 000000000..fe8a1ed31
--- /dev/null
+++ b/ui/widget/src/main/res/drawable/ic_widget_skip.xml
@@ -0,0 +1,7 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportHeight="24.0"
+ android:viewportWidth="24.0">
+ <path android:fillColor="#ffffff" android:pathData="M6,18l8.5,-6L6,6v12zM16,6v12h2V6h-2z"/>
+</vector>