[Android] Implement new display settings icons
Nicolas Pomepuy
git at videolan.org
Wed Apr 10 16:13:11 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Mar 25 13:33:09 2024 +0100| [11e1b70a2499656bd60407b16bdc65cd4adf58b7] | committer: Duncan McNamara
Implement new display settings icons
> https://code.videolan.org/videolan/vlc-android/commit/11e1b70a2499656bd60407b16bdc65cd4adf58b7
---
.../resources/assets/images/svg/ic_hidden.svg | 61 ++++++++++++++++++++++
.../resources/assets/images/svg/ic_multimedia.svg | 61 ++++++++++++++++++++++
.../resources/src/main/res/drawable/ic_hidden.xml | 10 ++++
.../src/main/res/drawable/ic_multimedia.xml | 10 ++++
.../res/layout/dialog_display_settings.xml | 4 +-
5 files changed, 144 insertions(+), 2 deletions(-)
diff --git a/application/resources/assets/images/svg/ic_hidden.svg b/application/resources/assets/images/svg/ic_hidden.svg
new file mode 100644
index 0000000000..82c320f70b
--- /dev/null
+++ b/application/resources/assets/images/svg/ic_hidden.svg
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ width="48.0px"
+ height="48.0px"
+ viewBox="0 0 48.0 48.0"
+ version="1.1"
+ id="SVGRoot"
+ sodipodi:docname="ic_hidden_1.svg"
+ inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <sodipodi:namedview
+ id="namedview4901"
+ pagecolor="#ffffff"
+ bordercolor="#111111"
+ borderopacity="1"
+ inkscape:pageshadow="0"
+ inkscape:pageopacity="0"
+ inkscape:pagecheckerboard="1"
+ inkscape:document-units="px"
+ showgrid="true"
+ inkscape:zoom="10.248373"
+ inkscape:cx="24.296541"
+ inkscape:cy="28.394752"
+ inkscape:window-width="1920"
+ inkscape:window-height="1043"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="layer1"
+ inkscape:snap-bbox="true"
+ inkscape:bbox-paths="true"
+ inkscape:bbox-nodes="true"
+ inkscape:snap-bbox-edge-midpoints="true"
+ inkscape:snap-bbox-midpoints="true"
+ inkscape:object-paths="true"
+ inkscape:snap-intersection-paths="true"
+ inkscape:snap-smooth-nodes="true"
+ inkscape:snap-midpoints="true"
+ inkscape:snap-object-midpoints="true"
+ inkscape:snap-center="true">
+ <inkscape:grid
+ type="xygrid"
+ id="grid4964" />
+ </sodipodi:namedview>
+ <defs
+ id="defs4896" />
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <path
+ id="path4-54"
+ style="stroke-width:1;fill:#000000"
+ d="M 12 4 C 9.8 4 8.0195314 5.8 8.0195312 8 L 8 40 C 8 42.2 9.7804686 44 11.980469 44 L 16 44 C 17.1046 44 18 43.10457 18 42 C 18 40.89543 17.1046 40 16 40 L 12 40 L 12 8 L 26 8 L 26 18 L 36 18 L 36 22 C 36 23.10457 36.8954 24 38 24 C 39.1046 24 40 23.10457 40 22 L 40 16 L 28 4 L 12 4 z M 31 26 C 25.360867 26 20.294167 29.098948 18.28125 34.275391 L 18 35 L 18.28125 35.724609 C 20.294167 40.901052 25.360867 44 31 44 C 36.639133 44 41.705833 40.901052 43.71875 35.724609 L 44 35 L 43.71875 34.275391 C 41.705833 29.098948 36.639133 26 31 26 z M 31 30 C 34.911232 30 38.007936 31.875839 39.570312 35 C 38.007936 38.124161 34.911232 40 31 40 C 27.088768 40 23.992064 38.124161 22.429688 35 C 23.992064 31.875839 27.088768 30 31 30 z M 30.996094 32 A 3.0000043 3.0000043 0 0 0 27.996094 35 A 3.0000043 3.0000043 0 0 0 30.996094 38 A 3.0000043 3.0000043 0 0 0 33.996094 35 A 3.0000043 3.0000043 0 0 0 30.996094 32 z " />
+ </g>
+</svg>
diff --git a/application/resources/assets/images/svg/ic_multimedia.svg b/application/resources/assets/images/svg/ic_multimedia.svg
new file mode 100644
index 0000000000..94a50838a8
--- /dev/null
+++ b/application/resources/assets/images/svg/ic_multimedia.svg
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ width="48.0px"
+ height="48.0px"
+ viewBox="0 0 48.0 48.0"
+ version="1.1"
+ id="SVGRoot"
+ sodipodi:docname="ic_multimedia_1.svg"
+ inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg">
+ <sodipodi:namedview
+ id="namedview4901"
+ pagecolor="#ffffff"
+ bordercolor="#111111"
+ borderopacity="1"
+ inkscape:pageshadow="0"
+ inkscape:pageopacity="0"
+ inkscape:pagecheckerboard="1"
+ inkscape:document-units="px"
+ showgrid="true"
+ inkscape:zoom="14.493388"
+ inkscape:cx="14.972345"
+ inkscape:cy="23.251983"
+ inkscape:window-width="1920"
+ inkscape:window-height="1043"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="layer1"
+ inkscape:snap-bbox="true"
+ inkscape:bbox-paths="true"
+ inkscape:bbox-nodes="true"
+ inkscape:snap-bbox-edge-midpoints="true"
+ inkscape:snap-bbox-midpoints="true"
+ inkscape:object-paths="true"
+ inkscape:snap-intersection-paths="true"
+ inkscape:snap-smooth-nodes="true"
+ inkscape:snap-midpoints="true"
+ inkscape:snap-object-midpoints="true"
+ inkscape:snap-center="true">
+ <inkscape:grid
+ type="xygrid"
+ id="grid4964" />
+ </sodipodi:namedview>
+ <defs
+ id="defs4896" />
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <path
+ id="path14735"
+ style="fill:#000000;stroke-width:1"
+ d="M 38 6 C 35.8 6 34 7.8 34 10 L 34 27.083984 C 32.8208 26.396704 31.4539 26 30 26 C 25.6054 26 22 29.60542 22 34 C 22 38.39459 25.6054 42 30 42 C 34.3946 42 38 38.39459 38 34 L 38 14 L 42 14 C 44.2 14 46 12.2 46 10 L 46 6 L 38 6 z M 6 8 C 3.8 8 2 9.7999998 2 12 L 2 36 C 2 38.2 3.8 40 6 40 L 18 40 A 2 2 0 0 0 20 38 A 2 2 0 0 0 18 36 L 6 36 L 6 13 L 9.5195312 20 L 28 20 A 2 2 0 0 0 30 18 L 30 11.988281 L 28 8 L 24 8 L 27.640625 15.279297 C 27.800625 15.599297 27.559619 16 27.199219 16 L 23.240234 16 C 22.480234 16 21.780938 15.580391 21.460938 14.900391 L 18 8 L 14 8 L 17.640625 15.279297 C 17.800625 15.599297 17.559619 16 17.199219 16 L 13.240234 16 C 12.480234 16 11.779453 15.580391 11.439453 14.900391 L 8 8 L 6 8 z M 30 30 C 32.2328 30 34 31.76717 34 34 C 34 36.23283 32.2328 38 30 38 C 27.7672 38 26 36.23283 26 34 C 26 31.76717 27.7672 30 30 30 z " />
+ </g>
+</svg>
diff --git a/application/resources/src/main/res/drawable/ic_hidden.xml b/application/resources/src/main/res/drawable/ic_hidden.xml
new file mode 100644
index 0000000000..720645a976
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_hidden.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="48"
+ android:viewportHeight="48">
+ <path
+ android:fillColor="?attr/colorControlNormal"
+ android:pathData="M12,4C9.8,4 8.02,5.8 8.02,8L8,40C8,42.2 9.78,44 11.98,44L16,44C17.105,44 18,43.105 18,42C18,40.895 17.105,40 16,40L12,40L12,8L26,8L26,18L36,18L36,22C36,23.105 36.895,24 38,24C39.105,24 40,23.105 40,22L40,16L28,4L12,4zM31,26C25.361,26 20.294,29.099 18.281,34.275L18,35L18.281,35.725C20.294,40.901 25.361,44 31,44C36.639,44 41.706,40.901 43.719,35.725L44,35L43.719,34.275C41.706,29.099 36.639,26 31,26zM31,30C34.911,30 38.008,31.876 39.57,35C38.008,38.124 34.911,40 31,40C27.089,40 23.992,38.124 22.43,35C23.992,31.876 27.089,30 31,30zM30.996,32A3,3 0,0 0,27.996 35A3,3 0,0 0,30.996 38A3,3 0,0 0,33.996 35A3,3 0,0 0,30.996 32z"
+ android:strokeWidth="1" />
+</vector>
diff --git a/application/resources/src/main/res/drawable/ic_multimedia.xml b/application/resources/src/main/res/drawable/ic_multimedia.xml
new file mode 100644
index 0000000000..d6b3379042
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_multimedia.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="48"
+ android:viewportHeight="48">
+ <path
+ android:pathData="M38,6C35.8,6 34,7.8 34,10L34,27.084C32.821,26.397 31.454,26 30,26C25.605,26 22,29.605 22,34C22,38.395 25.605,42 30,42C34.395,42 38,38.395 38,34L38,14L42,14C44.2,14 46,12.2 46,10L46,6L38,6zM6,8C3.8,8 2,9.8 2,12L2,36C2,38.2 3.8,40 6,40L18,40A2,2 0,0 0,20 38A2,2 0,0 0,18 36L6,36L6,13L9.52,20L28,20A2,2 0,0 0,30 18L30,11.988L28,8L24,8L27.641,15.279C27.801,15.599 27.56,16 27.199,16L23.24,16C22.48,16 21.781,15.58 21.461,14.9L18,8L14,8L17.641,15.279C17.801,15.599 17.56,16 17.199,16L13.24,16C12.48,16 11.779,15.58 11.439,14.9L8,8L6,8zM30,30C32.233,30 34,31.767 34,34C34,36.233 32.233,38 30,38C27.767,38 26,36.233 26,34C26,31.767 27.767,30 30,30z"
+ android:strokeWidth="1"
+ android:fillColor="?attr/colorControlNormal"/>
+</vector>
diff --git a/application/vlc-android/res/layout/dialog_display_settings.xml b/application/vlc-android/res/layout/dialog_display_settings.xml
index 44a48e006e..9d72f37e5d 100644
--- a/application/vlc-android/res/layout/dialog_display_settings.xml
+++ b/application/vlc-android/res/layout/dialog_display_settings.xml
@@ -159,7 +159,7 @@
app:layout_constraintBottom_toBottomOf="@+id/show_all_files_group"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/show_all_files_group"
- app:srcCompat="@drawable/ic_sort_artist" />
+ app:srcCompat="@drawable/ic_multimedia" />
<TextView
android:id="@+id/show_all_files_text"
@@ -203,7 +203,7 @@
app:layout_constraintBottom_toBottomOf="@+id/show_hidden_files_group"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/show_hidden_files_group"
- app:srcCompat="@drawable/ic_sort_artist" />
+ app:srcCompat="@drawable/ic_hidden" />
<TextView
android:id="@+id/show_hidden_files_text"
More information about the Android
mailing list