[Android] UI : Adjust size and rename sort icon

Alexandre Perraud git at videolan.org
Wed Apr 1 15:57:01 CEST 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Apr  1 15:55:53 2015 +0200| [10b26c748d3294baef6c711cd246d9dafa5b6876] | committer: Alexandre Perraud

UI : Adjust size and rename sort icon

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=10b26c748d3294baef6c711cd246d9dafa5b6876
---

 assets/images/svg/ic_menu_sort.svg                 |   84 ++++++++++++++++++++
 assets/images/svg/ic_menu_sortby.svg               |   64 ---------------
 vlc-android/res/drawable-hdpi/ic_menu_sort.png     |  Bin 0 -> 262 bytes
 .../res/drawable-hdpi/ic_sort_white_36dp.png       |  Bin 256 -> 0 bytes
 vlc-android/res/drawable-ldpi/ic_menu_sort.png     |  Bin 0 -> 228 bytes
 vlc-android/res/drawable-mdpi/ic_menu_sort.png     |  Bin 0 -> 214 bytes
 .../res/drawable-mdpi/ic_sort_white_36dp.png       |  Bin 209 -> 0 bytes
 vlc-android/res/drawable-xhdpi/ic_menu_sort.png    |  Bin 0 -> 308 bytes
 .../res/drawable-xhdpi/ic_sort_white_36dp.png      |  Bin 218 -> 0 bytes
 .../res/drawable-xxhdpi/ic_sort_white_36dp.png     |  Bin 295 -> 0 bytes
 .../res/drawable-xxxhdpi/ic_sort_white_36dp.png    |  Bin 354 -> 0 bytes
 vlc-android/res/menu/media_library.xml             |    2 +-
 vlc-android/res/menu/video_group.xml               |    2 +-
 13 files changed, 86 insertions(+), 66 deletions(-)

diff --git a/assets/images/svg/ic_menu_sort.svg b/assets/images/svg/ic_menu_sort.svg
new file mode 100644
index 0000000..307ec58
--- /dev/null
+++ b/assets/images/svg/ic_menu_sort.svg
@@ -0,0 +1,84 @@
+<?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="24"
+   height="24"
+   id="svg4682"
+   version="1.1"
+   inkscape:version="0.48.5 r10040"
+   sodipodi:docname="ic_menu_sort.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="15.839192"
+     inkscape:cx="-17.219133"
+     inkscape:cy="14.828543"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1056"
+     inkscape:window-x="0"
+     inkscape:window-y="24"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       type="xygrid"
+       id="grid3775" />
+  </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,-1028.3622)">
+    <rect
+       style="color:#000000;fill:#fafafa;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       id="rect5474"
+       width="16"
+       height="2"
+       x="4"
+       y="1034.3622" />
+    <rect
+       style="color:#000000;fill:#fafafa;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       id="rect5476"
+       width="10"
+       height="2"
+       x="4"
+       y="1039.3622" />
+    <rect
+       style="color:#000000;fill:#fafafa;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       id="rect5478"
+       width="5"
+       height="2"
+       x="4"
+       y="1044.3622" />
+  </g>
+</svg>
diff --git a/assets/images/svg/ic_menu_sortby.svg b/assets/images/svg/ic_menu_sortby.svg
deleted file mode 100644
index 26e71d2..0000000
--- a/assets/images/svg/ic_menu_sortby.svg
+++ /dev/null
@@ -1,64 +0,0 @@
-<?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="130"
-   height="130"
-   id="svg4682"
-   version="1.1"
-   inkscape:version="0.48.4 r9939"
-   sodipodi:docname="ic_menu_sortby.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="5.6"
-     inkscape:cx="6.345731"
-     inkscape:cy="61.032055"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="false"
-     inkscape:window-width="1680"
-     inkscape:window-height="1026"
-     inkscape:window-x="1920"
-     inkscape:window-y="54"
-     inkscape:window-maximized="1" />
-  <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,-922.36218)">
-    <path
-       inkscape:connector-curvature="0"
-       style="fill:#fafafa;fill-opacity:1;stroke:none"
-       d="m 93.19572,942.38461 c -0.558738,-0.012 -1.198531,0.65048 -1.200813,1.2008 l 0,62.44229 -4.803253,0 c -0.838889,6e-4 -1.38802,1.0333 -0.975661,1.7638 l 10.807319,24.0162 c 0.418844,0.7393 1.68258,0.7393 2.101424,0 l 10.807314,-24.0162 c 0.41237,-0.7306 -0.28687,-1.7632 -1.12575,-1.7638 l -4.80326,0 0,-62.44229 c 0,-0.62778 -0.57302,-1.19732 -1.20082,-1.2008 -7.663944,-0.0781 -3.062788,0.0793 -9.6065,0 z m -70.847981,7.20488 c -1.330502,0 -2.401627,1.07112 -2.401627,2.40162 l 0,9.60651 c 0,1.3305 1.071125,2.40162 2.401627,2.40162 l 13.208945,0 c 1.330501,0 2.401626,-1.07112 2.401626,-2.40162 l 0,-9.60651 c 0,-1.3305 -1.071125,-2.40162 -2.401626,-2.40162 l -13.208945,0 z m 0,20.41382 c -1.324618,0 -2.401627,1.03943 -2.401627,2.36416 l 0,9.64398 c 0,1.32461 1.077009,2.40162 2.401627,2.40162 l 25.217078,0 c 1.324617,0 2.401626,-1.07701 2.401626,-2.40162 l 0,-9.64398 c 0,-1.32473 -1.077009,-2.36416 -2.401626,-2.36416 l -25.217078,0 z m 0,20.41383 c -1.330502,0 -2.401627,1.07112
  -2.401627,2.40162 l 0,9.60654 c 0,1.3305 1.071125,2.4016 2.401627,2.4016 l 37.22521,0 c 1.330501,0 2.401626,-1.0711 2.401626,-2.4016 l 0,-9.60654 c 0,-1.3305 -1.071125,-2.40162 -2.401626,-2.40162 l -37.22521,0 z m 0,20.41386 c -1.330502,0 -2.401627,1.0711 -2.401627,2.4016 l 0,9.6065 c 0,1.3306 1.071125,2.4017 2.401627,2.4017 l 49.233343,0 c 1.3305,0 2.401626,-1.0711 2.401626,-2.4017 l 0,-9.6065 c 0,-1.3305 -1.071126,-2.4016 -2.401626,-2.4016 l -49.233343,0 z"
-       id="path4586" />
-  </g>
-</svg>
diff --git a/vlc-android/res/drawable-hdpi/ic_menu_sort.png b/vlc-android/res/drawable-hdpi/ic_menu_sort.png
new file mode 100644
index 0000000..a1e448f
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/ic_menu_sort.png differ
diff --git a/vlc-android/res/drawable-hdpi/ic_sort_white_36dp.png b/vlc-android/res/drawable-hdpi/ic_sort_white_36dp.png
deleted file mode 100644
index 126159c..0000000
Binary files a/vlc-android/res/drawable-hdpi/ic_sort_white_36dp.png and /dev/null differ
diff --git a/vlc-android/res/drawable-ldpi/ic_menu_sort.png b/vlc-android/res/drawable-ldpi/ic_menu_sort.png
new file mode 100644
index 0000000..884e10e
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/ic_menu_sort.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_menu_sort.png b/vlc-android/res/drawable-mdpi/ic_menu_sort.png
new file mode 100644
index 0000000..83aa375
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/ic_menu_sort.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_sort_white_36dp.png b/vlc-android/res/drawable-mdpi/ic_sort_white_36dp.png
deleted file mode 100644
index 25c2dad..0000000
Binary files a/vlc-android/res/drawable-mdpi/ic_sort_white_36dp.png and /dev/null differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_menu_sort.png b/vlc-android/res/drawable-xhdpi/ic_menu_sort.png
new file mode 100644
index 0000000..815b6f6
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/ic_menu_sort.png differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_sort_white_36dp.png b/vlc-android/res/drawable-xhdpi/ic_sort_white_36dp.png
deleted file mode 100644
index d1127eb..0000000
Binary files a/vlc-android/res/drawable-xhdpi/ic_sort_white_36dp.png and /dev/null differ
diff --git a/vlc-android/res/drawable-xxhdpi/ic_sort_white_36dp.png b/vlc-android/res/drawable-xxhdpi/ic_sort_white_36dp.png
deleted file mode 100644
index 85efc0a..0000000
Binary files a/vlc-android/res/drawable-xxhdpi/ic_sort_white_36dp.png and /dev/null differ
diff --git a/vlc-android/res/drawable-xxxhdpi/ic_sort_white_36dp.png b/vlc-android/res/drawable-xxxhdpi/ic_sort_white_36dp.png
deleted file mode 100644
index 7a29437..0000000
Binary files a/vlc-android/res/drawable-xxxhdpi/ic_sort_white_36dp.png and /dev/null differ
diff --git a/vlc-android/res/menu/media_library.xml b/vlc-android/res/menu/media_library.xml
index 906358e..65a329f 100644
--- a/vlc-android/res/menu/media_library.xml
+++ b/vlc-android/res/menu/media_library.xml
@@ -32,7 +32,7 @@
         vlc:showAsAction="ifRoom" />
     <item
         android:title="@string/sortby"
-        android:icon="@drawable/ic_sort_white_36dp"
+        android:icon="@drawable/ic_menu_sort"
         android:id="@+id/ml_menu_sortby"
         vlc:showAsAction="ifRoom">
         <menu>
diff --git a/vlc-android/res/menu/video_group.xml b/vlc-android/res/menu/video_group.xml
index 3ab7ff2..6534074 100644
--- a/vlc-android/res/menu/video_group.xml
+++ b/vlc-android/res/menu/video_group.xml
@@ -3,7 +3,7 @@
     xmlns:vlc="http://schemas.android.com/apk/res-auto" >
     <item
         android:title="@string/sortby"
-        android:icon="@drawable/ic_sort_white_36dp"
+        android:icon="@drawable/ic_menu_sort"
         android:id="@+id/ml_menu_sortby"
         vlc:showAsAction="ifRoom">
         <menu>



More information about the Android mailing list