[Android] Add new audiotips icon

Alexandre Perraud git at videolan.org
Tue Nov 2 13:00:50 UTC 2021


vlc-android | branch: master | Alexandre Perraud <alexandre at videolan.org> | Thu Sep 23 16:58:33 2021 +0200| [7b440ce3fedae8dc9286b5845407750f416fb4c9] | committer: Nicolas Pomepuy

Add new audiotips icon

> https://code.videolan.org/videolan/vlc-android/commit/7b440ce3fedae8dc9286b5845407750f416fb4c9
---

 .../resources/assets/images/svg/ic_audiotips.svg   | 63 ++++++++++++++++++++++
 .../src/main/res/drawable/ic_audiotips.xml         | 11 ++++
 .../resources/src/main/res/values/attrs.xml        |  1 +
 application/vlc-android/res/values/styles.xml      |  4 ++
 .../vlc/gui/helpers/PlayerOptionsDelegate.kt       |  2 +-
 5 files changed, 80 insertions(+), 1 deletion(-)

diff --git a/application/resources/assets/images/svg/ic_audiotips.svg b/application/resources/assets/images/svg/ic_audiotips.svg
new file mode 100644
index 000000000..df6fb2d03
--- /dev/null
+++ b/application/resources/assets/images/svg/ic_audiotips.svg
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="48.0px"
+   height="48.0px"
+   viewBox="0 0 48.0 48.0"
+   version="1.1"
+   id="SVGRoot"
+   sodipodi:docname="ic_audiotips.svg"
+   inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
+  <defs
+     id="defs3622" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="11.2"
+     inkscape:cx="25.340877"
+     inkscape:cy="42.802782"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     inkscape:document-rotation="0"
+     showgrid="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1043"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       type="xygrid"
+       id="grid4192" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata3625">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <path
+       id="path3005"
+       style="color:#000000;overflow:visible;fill:#000000;fill-opacity:1;stroke:none;stroke-width:3.93043;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
+       d="M 21.939453 6 A 4 4 0 0 0 18 10 L 18 14 L 18 27.072266 A 8 8 0 0 0 14 26 A 8 8 0 0 0 6 34 A 8 8 0 0 0 14 42 A 8 8 0 0 0 22 34 L 22 14 L 26.060547 14 A 4 4 0 0 0 30 10 L 30 6 L 21.939453 6 z M 38 20 L 36.666016 22.666016 L 34 24 L 36.666016 25.333984 L 38 28 L 39.333984 25.333984 L 42 24 L 39.333984 22.666016 L 38 20 z M 32 28 L 30 32 L 26 34 L 30 36 L 32 40 L 34 36 L 38 34 L 34 32 L 32 28 z M 13.939453 30 A 4 4 0 0 1 14 30 A 4 4 0 0 1 18 34 A 4 4 0 0 1 14 38 A 4 4 0 0 1 10 34 A 4 4 0 0 1 13.939453 30 z " />
+  </g>
+</svg>
diff --git a/application/resources/src/main/res/drawable/ic_audiotips.xml b/application/resources/src/main/res/drawable/ic_audiotips.xml
new file mode 100644
index 000000000..afed9ff22
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_audiotips.xml
@@ -0,0 +1,11 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:width="48dp"
+    android:height="48dp"
+    android:viewportWidth="48"
+    android:viewportHeight="48">
+  <path
+      android:pathData="M21.9395,6A4,4 0,0 0,18 10L18,14L18,27.0723A8,8 0,0 0,14 26A8,8 0,0 0,6 34A8,8 0,0 0,14 42A8,8 0,0 0,22 34L22,14L26.0605,14A4,4 0,0 0,30 10L30,6L21.9395,6zM38,20L36.666,22.666L34,24L36.666,25.334L38,28L39.334,25.334L42,24L39.334,22.666L38,20zM32,28L30,32L26,34L30,36L32,40L34,36L38,34L34,32L32,28zM13.9395,30A4,4 0,0 1,14 30A4,4 0,0 1,18 34A4,4 0,0 1,14 38A4,4 0,0 1,10 34A4,4 0,0 1,13.9395 30z"
+      tools:fillColor="#ffffff"
+      android:fillColor="?attr/player_icon_color"/>
+</vector>
diff --git a/application/resources/src/main/res/values/attrs.xml b/application/resources/src/main/res/values/attrs.xml
index 33afb628a..71ed4fb32 100644
--- a/application/resources/src/main/res/values/attrs.xml
+++ b/application/resources/src/main/res/values/attrs.xml
@@ -107,6 +107,7 @@
     <attr name="dialog_circle_background" format="reference"/>
     <attr name="ic_tips" format="reference"/>
     <attr name="ic_videotips" format="reference"/>
+    <attr name="ic_audiotips" format="reference"/>
     <attr name="ic_tips_double_tap" format="reference"/>
     <attr name="ic_tips_tap" format="reference"/>
 
diff --git a/application/vlc-android/res/values/styles.xml b/application/vlc-android/res/values/styles.xml
index 99d557124..ba4487997 100644
--- a/application/vlc-android/res/values/styles.xml
+++ b/application/vlc-android/res/values/styles.xml
@@ -88,6 +88,7 @@
         <item name="ic_sleep_normal_style">@drawable/ic_sleep</item>
         <item name="ic_tips">@drawable/ic_show_tips</item>
         <item name="ic_videotips">@drawable/ic_videotips</item>
+        <item name="ic_audiotips">@drawable/ic_audiotips</item>
         <item name="ic_tips_double_tap">@drawable/tips_double_tap_500</item>
         <item name="ic_tips_tap">@drawable/tips_tap_500</item>
         <item name="ic_jumpto_normal_style">@drawable/ic_jumpto</item>
@@ -254,6 +255,7 @@
         <item name="ic_sleep_normal_style">@drawable/ic_sleep</item>
         <item name="ic_tips">@drawable/ic_show_tips_w</item>
         <item name="ic_videotips">@drawable/ic_videotips</item>
+        <item name="ic_audiotips">@drawable/ic_audiotips</item>
         <item name="ic_tips_double_tap">@drawable/tips_double_tap</item>
         <item name="ic_tips_tap">@drawable/tips_tap</item>
         <item name="ic_jumpto_normal_style">@drawable/ic_jumpto</item>
@@ -323,6 +325,7 @@
         <item name="ic_sleep_normal_style">@drawable/ic_sleep</item>
         <item name="ic_tips">@drawable/ic_show_tips_w</item>
         <item name="ic_videotips">@drawable/ic_videotips</item>
+        <item name="ic_audiotips">@drawable/ic_audiotips</item>
         <item name="ic_tips_double_tap">@drawable/tips_double_tap</item>
         <item name="ic_tips_tap">@drawable/tips_tap</item>
         <item name="ic_jumpto_normal_style">@drawable/ic_jumpto</item>
@@ -477,6 +480,7 @@
         <item name="ic_sleep_normal_style">@drawable/ic_sleep</item>
         <item name="ic_tips">@drawable/ic_show_tips_w</item>
         <item name="ic_videotips">@drawable/ic_videotips</item>
+        <item name="ic_audiotips">@drawable/ic_audiotips</item>
         <item name="ic_tips_double_tap">@drawable/tips_double_tap</item>
         <item name="ic_tips_tap">@drawable/tips_tap</item>
         <item name="ic_jumpto_normal_style">@drawable/ic_jumpto</item>
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt b/application/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
index 7c768ae32..08c6ffc35 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
@@ -125,7 +125,7 @@ class PlayerOptionsDelegate(val activity: FragmentActivity, val service: Playbac
             options.add(PlayerOption(ID_SHOW_VIDEO_TIPS, R.attr.ic_videotips, res.getString(R.string.tips_title)))
             } else {
             options.add(PlayerOption(ID_AUDIO_CONTROLS_SETTING, R.attr.ic_audio_controls, res.getString(R.string.controls_setting)))
-                options.add(PlayerOption(ID_SHOW_AUDIO_TIPS, R.attr.ic_tips, res.getString(R.string.audio_player_tips)))
+            options.add(PlayerOption(ID_SHOW_AUDIO_TIPS, R.attr.ic_audiotips, res.getString(R.string.audio_player_tips)))
                 options.add(PlayerOption(ID_SHOW_PLAYLIST_TIPS, R.attr.ic_tips, res.getString(R.string.playlist_tips)))
             }
         }



More information about the Android mailing list