[Android] Add new Add Network icon for TV
Alexandre Perraud
git at videolan.org
Thu Oct 18 17:36:38 CEST 2018
vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Oct 17 18:04:54 2018 +0200| [c483e4b22f5bf8f2c550e262c8cc97498b4af21d] | committer: Geoffrey Métais
Add new Add Network icon for TV
Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>
> https://code.videolan.org/videolan/vlc-android/commit/c483e4b22f5bf8f2c550e262c8cc97498b4af21d
---
assets/images/svg/ic_menu_network_add_big.svg | 68 +++++++++++++++++++++
.../res/drawable-hdpi/ic_menu_network_add_big.png | Bin 0 -> 1017 bytes
.../res/drawable-ldpi/ic_menu_network_add_big.png | Bin 0 -> 562 bytes
.../res/drawable-mdpi/ic_menu_network_add_big.png | Bin 0 -> 757 bytes
.../res/drawable-xhdpi/ic_menu_network_add_big.png | Bin 0 -> 1201 bytes
vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt | 3 +-
6 files changed, 70 insertions(+), 1 deletion(-)
diff --git a/assets/images/svg/ic_menu_network_add_big.svg b/assets/images/svg/ic_menu_network_add_big.svg
new file mode 100644
index 000000000..992839c24
--- /dev/null
+++ b/assets/images/svg/ic_menu_network_add_big.svg
@@ -0,0 +1,68 @@
+<?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="48"
+ height="48"
+ id="svg4682"
+ version="1.1"
+ inkscape:version="0.92.3 (unknown)"
+ sodipodi:docname="ic_menu_network_add_big.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="-2.824227"
+ inkscape:cy="27.939419"
+ 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:grid
+ type="xygrid"
+ id="grid4483" />
+ </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 />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-1004.3622)">
+ <path
+ inkscape:connector-curvature="0"
+ style="color:#000000;display:inline;overflow:visible;visibility:visible;fill:#757575;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2;marker:none;enable-background:accumulate"
+ d="m 10,1014.3622 c -2.20912,0 -4,1.7908 -4,4 v 20 c 0,2.2092 1.79088,4 4,4 h 14 c 0,-9.9412 8.05888,-18 18,-18 v -2 c 0,-2.216 -1.784,-4 -4,-4 H 24 l -4,-4 z m 4.5,10 h 3 v 4.5 H 22 v 3 h -4.5 v 4.5 h -3 v -4.5 H 10 v -3 h 4.5 z m 27.5,3 c -8.28428,0 -15,6.7158 -15,15 h 3 c 0,-6.6274 5.37258,-12 12,-12 z m 0,6 c -4.97056,0 -9,4.0294 -9,9 h 3 c 0,-3.3136 2.6863,-6 6,-6 z m 0,6 c -1.65686,0 -3,1.3432 -3,3 h 3 z"
+ id="path5250-3" />
+ </g>
+</svg>
diff --git a/vlc-android/res/drawable-hdpi/ic_menu_network_add_big.png b/vlc-android/res/drawable-hdpi/ic_menu_network_add_big.png
new file mode 100644
index 000000000..d376159e8
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/ic_menu_network_add_big.png differ
diff --git a/vlc-android/res/drawable-ldpi/ic_menu_network_add_big.png b/vlc-android/res/drawable-ldpi/ic_menu_network_add_big.png
new file mode 100644
index 000000000..f0a1c7316
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/ic_menu_network_add_big.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_menu_network_add_big.png b/vlc-android/res/drawable-mdpi/ic_menu_network_add_big.png
new file mode 100644
index 000000000..f32b4d98e
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/ic_menu_network_add_big.png differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_menu_network_add_big.png b/vlc-android/res/drawable-xhdpi/ic_menu_network_add_big.png
new file mode 100644
index 000000000..4c247c95e
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/ic_menu_network_add_big.png differ
diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt b/vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt
index 7cda8fcb5..f2e71dd19 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/TvUtil.kt
@@ -230,7 +230,8 @@ object TvUtil {
return when (mediaLibraryItem.id) {
HEADER_VIDEO -> R.drawable.ic_video_collection_big
HEADER_DIRECTORIES -> R.drawable.ic_menu_folder_big
- HEADER_SERVER, HEADER_NETWORK -> R.drawable.ic_menu_network_big
+ HEADER_NETWORK -> R.drawable.ic_menu_network_big
+ HEADER_SERVER -> R.drawable.ic_menu_network_add_big
HEADER_STREAM -> R.drawable.ic_menu_stream_big
ID_SETTINGS -> R.drawable.ic_menu_preferences_big
ID_ABOUT_TV, ID_LICENCE -> R.drawable.ic_default_cone
More information about the Android
mailing list