[Android] Add new playlist tips 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 17:05:41 2021 +0200| [4dd9fd81e346a470e0055927f9741b5826c59524] | committer: Nicolas Pomepuy

Add new playlist tips icon

> https://code.videolan.org/videolan/vlc-android/commit/4dd9fd81e346a470e0055927f9741b5826c59524
---

 .../assets/images/svg/ic_playlisttips.svg          | 63 ++++++++++++++++++++++
 .../src/main/res/drawable/ic_playlisttips.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_playlisttips.svg b/application/resources/assets/images/svg/ic_playlisttips.svg
new file mode 100644
index 000000000..9b6648739
--- /dev/null
+++ b/application/resources/assets/images/svg/ic_playlisttips.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_playlisttips.svg"
+   inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
+  <defs
+     id="defs4873" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="3.959798"
+     inkscape:cx="54.319586"
+     inkscape:cy="43.565798"
+     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="grid5443" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata4876">
+    <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="path2995"
+       style="fill:#000000;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 9.9003906 12 C 8.8475026 12 8 12.892002 8 14 C 8 15.107998 8.8475026 16 9.9003906 16 L 26.099609 16 C 27.152497 16 28 15.107998 28 14 C 28 12.892002 27.152497 12 26.099609 12 L 9.9003906 12 z M 10 20 C 8.892 20 8 20.892002 8 22 C 8 23.107998 8.892 24 10 24 L 26 24 C 27.108 24 28 23.107998 28 22 C 28 20.892002 27.108 20 26 20 L 10 20 z M 38 22 L 36.666016 24.666016 L 34 26 L 36.666016 27.333984 L 38 30 L 39.333984 27.333984 L 42 26 L 39.333984 24.666016 L 38 22 z M 10 28 C 8.892 28 8 28.892 8 30 C 8 31.108 8.892 32 10 32 L 18 32 C 19.108 32 20 31.108 20 30 C 20 28.892 19.108 28 18 28 L 10 28 z M 32 30 L 30 34 L 26 36 L 30 38 L 32 42 L 34 38 L 38 36 L 34 34 L 32 30 z " />
+  </g>
+</svg>
diff --git a/application/resources/src/main/res/drawable/ic_playlisttips.xml b/application/resources/src/main/res/drawable/ic_playlisttips.xml
new file mode 100644
index 000000000..05a87a9eb
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_playlisttips.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="M9.9004,12C8.8475,12 8,12.892 8,14C8,15.108 8.8475,16 9.9004,16L26.0996,16C27.1525,16 28,15.108 28,14C28,12.892 27.1525,12 26.0996,12L9.9004,12zM10,20C8.892,20 8,20.892 8,22C8,23.108 8.892,24 10,24L26,24C27.108,24 28,23.108 28,22C28,20.892 27.108,20 26,20L10,20zM38,22L36.666,24.666L34,26L36.666,27.334L38,30L39.334,27.334L42,26L39.334,24.666L38,22zM10,28C8.892,28 8,28.892 8,30C8,31.108 8.892,32 10,32L18,32C19.108,32 20,31.108 20,30C20,28.892 19.108,28 18,28L10,28zM32,30L30,34L26,36L30,38L32,42L34,38L38,36L34,34L32,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 71ed4fb32..098116856 100644
--- a/application/resources/src/main/res/values/attrs.xml
+++ b/application/resources/src/main/res/values/attrs.xml
@@ -108,6 +108,7 @@
     <attr name="ic_tips" format="reference"/>
     <attr name="ic_videotips" format="reference"/>
     <attr name="ic_audiotips" format="reference"/>
+    <attr name="ic_playlisttips" 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 ba4487997..7867d0221 100644
--- a/application/vlc-android/res/values/styles.xml
+++ b/application/vlc-android/res/values/styles.xml
@@ -89,6 +89,7 @@
         <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_playlisttips">@drawable/ic_playlisttips</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>
@@ -256,6 +257,7 @@
         <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_playlisttips">@drawable/ic_playlisttips</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>
@@ -326,6 +328,7 @@
         <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_playlisttips">@drawable/ic_playlisttips</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>
@@ -481,6 +484,7 @@
         <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_playlisttips">@drawable/ic_playlisttips</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 08c6ffc35..d3b71200c 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
@@ -126,7 +126,7 @@ class PlayerOptionsDelegate(val activity: FragmentActivity, val service: Playbac
             } 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_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)))
+            options.add(PlayerOption(ID_SHOW_PLAYLIST_TIPS, R.attr.ic_playlisttips, res.getString(R.string.playlist_tips)))
             }
         }
     }



More information about the Android mailing list