[Android] Add our icons for the new download subtitles dialog

Alexandre Perraud git at videolan.org
Wed Oct 24 11:40:17 CEST 2018


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Tue Oct 23 17:07:09 2018 +0200| [42f0ece79d1dbc1da5cadfe0f52dde8cafabff9d] | committer: Geoffrey Métais

Add our icons for the new download subtitles dialog

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

> https://code.videolan.org/videolan/vlc-android/commit/42f0ece79d1dbc1da5cadfe0f52dde8cafabff9d
---

 assets/images/svg/ic_ctx_done_normal.svg           |  80 +++++++++++++++++++++
 .../res/drawable-hdpi/ic_ctx_done_normal.png       | Bin 0 -> 332 bytes
 .../res/drawable-ldpi/ic_ctx_done_normal.png       | Bin 0 -> 258 bytes
 .../res/drawable-mdpi/ic_ctx_done_normal.png       | Bin 0 -> 329 bytes
 .../res/drawable-xhdpi/ic_ctx_done_normal.png      | Bin 0 -> 337 bytes
 vlc-android/res/drawable/ic_done_black_24dp.xml    |   9 ---
 vlc-android/res/drawable/ic_download.xml           |   9 ---
 vlc-android/res/layout/subtitle_download_item.xml  |   2 +-
 8 files changed, 81 insertions(+), 19 deletions(-)

diff --git a/assets/images/svg/ic_ctx_done_normal.svg b/assets/images/svg/ic_ctx_done_normal.svg
new file mode 100644
index 000000000..c65d3410c
--- /dev/null
+++ b/assets/images/svg/ic_ctx_done_normal.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<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="20"
+   height="20"
+   id="svg4682"
+   version="1.1"
+   inkscape:version="0.92.3 (unknown)"
+   sodipodi:docname="ic_ctx_done_normal.svg"
+   inkscape:export-filename="/home/corbax/Dev/android/Icons/Test 1/ic_play_normal.png"
+   inkscape:export-xdpi="90"
+   inkscape:export-ydpi="90">
+  <defs
+     id="defs4684" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="11.2"
+     inkscape:cx="-24.367551"
+     inkscape:cy="19.441799"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1025"
+     inkscape:window-x="0"
+     inkscape:window-y="27"
+     inkscape:window-maximized="1"
+     inkscape:snap-bbox="true"
+     inkscape:bbox-nodes="true"
+     inkscape:bbox-paths="true"
+     inkscape:snap-bbox-edge-midpoints="true"
+     inkscape:snap-bbox-midpoints="true"
+     inkscape:object-paths="true"
+     inkscape:snap-intersection-paths="true"
+     inkscape:object-nodes="true"
+     inkscape:snap-smooth-nodes="true"
+     inkscape:snap-midpoints="true"
+     inkscape:snap-object-midpoints="true"
+     inkscape:snap-center="true">
+    <inkscape:grid
+       type="xygrid"
+       id="grid3002" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata4687">
+    <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"
+     transform="translate(0,-1032.3622)">
+    <path
+       style="fill:#212121;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 14.5,1038.8622 -6.5,6.5 -2.5,-2.5 -1.5,1.5 4,4 8,-8 z"
+       id="path5276"
+       inkscape:connector-curvature="0" />
+  </g>
+</svg>
diff --git a/vlc-android/res/drawable-hdpi/ic_ctx_done_normal.png b/vlc-android/res/drawable-hdpi/ic_ctx_done_normal.png
new file mode 100644
index 000000000..118a872fb
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/ic_ctx_done_normal.png differ
diff --git a/vlc-android/res/drawable-ldpi/ic_ctx_done_normal.png b/vlc-android/res/drawable-ldpi/ic_ctx_done_normal.png
new file mode 100644
index 000000000..dd2eb5421
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/ic_ctx_done_normal.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_ctx_done_normal.png b/vlc-android/res/drawable-mdpi/ic_ctx_done_normal.png
new file mode 100644
index 000000000..9c44c2c98
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/ic_ctx_done_normal.png differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_ctx_done_normal.png b/vlc-android/res/drawable-xhdpi/ic_ctx_done_normal.png
new file mode 100644
index 000000000..13d225b9b
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/ic_ctx_done_normal.png differ
diff --git a/vlc-android/res/drawable/ic_done_black_24dp.xml b/vlc-android/res/drawable/ic_done_black_24dp.xml
deleted file mode 100644
index 7affe9ba9..000000000
--- a/vlc-android/res/drawable/ic_done_black_24dp.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="24dp"
-        android:height="24dp"
-        android:viewportWidth="24.0"
-        android:viewportHeight="24.0">
-    <path
-        android:fillColor="#FF000000"
-        android:pathData="M9,16.2L4.8,12l-1.4,1.4L9,19 21,7l-1.4,-1.4L9,16.2z"/>
-</vector>
diff --git a/vlc-android/res/drawable/ic_download.xml b/vlc-android/res/drawable/ic_download.xml
deleted file mode 100644
index 492b41d34..000000000
--- a/vlc-android/res/drawable/ic_download.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="24dp"
-        android:height="24dp"
-        android:viewportWidth="24.0"
-        android:viewportHeight="24.0">
-    <path
-        android:fillColor="#FF000000"
-        android:pathData="M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z"/>
-</vector>
diff --git a/vlc-android/res/layout/subtitle_download_item.xml b/vlc-android/res/layout/subtitle_download_item.xml
index 06de309cf..7c8f99777 100644
--- a/vlc-android/res/layout/subtitle_download_item.xml
+++ b/vlc-android/res/layout/subtitle_download_item.xml
@@ -60,7 +60,7 @@
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintTop_toTopOf="parent"
-            android:src="@{subtitleItem.state == State.Downloaded ? @drawable/ic_done_black_24dp : @drawable/ic_ctx_download_subtitles_normal }"/>
+            android:src="@{subtitleItem.state == State.Downloaded ? @drawable/ic_ctx_done_normal : @drawable/ic_ctx_download_subtitles_normal }"/>
 
         <ProgressBar
             android:id="@+id/loading"



More information about the Android mailing list