[Android] Add 3 states checkbox icon

Alexandre Perraud git at videolan.org
Thu Jun 15 17:26:03 CEST 2017


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Thu Jun 15 17:24:56 2017 +0200| [64c8e9bac055bfc7b177bb9e1aa4bc33fbdb9129] | committer: Alexandre Perraud

Add 3 states checkbox icon

> https://code.videolan.org/videolan/vlc-android/commit/64c8e9bac055bfc7b177bb9e1aa4bc33fbdb9129
---

 assets/images/svg/ic_checkbox_false.svg            |  12 ++--
 assets/images/svg/ic_checkbox_partialy.svg         |  79 +++++++++++++++++++++
 .../res/drawable-hdpi/ic_checkbox_false.png        | Bin 0 -> 281 bytes
 .../res/drawable-hdpi/ic_checkbox_partialy.png     | Bin 0 -> 289 bytes
 vlc-android/res/drawable-hdpi/ic_checkbox_true.png | Bin 0 -> 384 bytes
 .../res/drawable-ldpi/ic_checkbox_false.png        | Bin 0 -> 241 bytes
 .../res/drawable-ldpi/ic_checkbox_partialy.png     | Bin 0 -> 258 bytes
 vlc-android/res/drawable-ldpi/ic_checkbox_true.png | Bin 0 -> 302 bytes
 .../res/drawable-mdpi/ic_checkbox_false.png        | Bin 0 -> 219 bytes
 .../res/drawable-mdpi/ic_checkbox_partialy.png     | Bin 0 -> 229 bytes
 vlc-android/res/drawable-mdpi/ic_checkbox_true.png | Bin 0 -> 300 bytes
 .../res/drawable-xhdpi/ic_checkbox_false.png       | Bin 0 -> 326 bytes
 .../res/drawable-xhdpi/ic_checkbox_partialy.png    | Bin 0 -> 339 bytes
 .../res/drawable-xhdpi/ic_checkbox_true.png        | Bin 0 -> 465 bytes
 14 files changed, 85 insertions(+), 6 deletions(-)

diff --git a/assets/images/svg/ic_checkbox_false.svg b/assets/images/svg/ic_checkbox_false.svg
index 466c92aac..b7bca3f5b 100644
--- a/assets/images/svg/ic_checkbox_false.svg
+++ b/assets/images/svg/ic_checkbox_false.svg
@@ -13,7 +13,7 @@
    height="20"
    id="svg4682"
    version="1.1"
-   inkscape:version="0.48.5 r10040"
+   inkscape:version="0.91 r13725"
    sodipodi:docname="ic_checkbox_false.svg"
    inkscape:export-filename="/home/corbax/Dev/android/Icons/Test 1/ic_play_normal.png"
    inkscape:export-xdpi="90"
@@ -27,9 +27,9 @@
      borderopacity="1.0"
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
-     inkscape:zoom="15.839192"
-     inkscape:cx="-2.2118905"
-     inkscape:cy="17.490209"
+     inkscape:zoom="44.8"
+     inkscape:cx="2.9915658"
+     inkscape:cy="10.6772"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="true"
@@ -54,7 +54,7 @@
         <dc:format>image/svg+xml</dc:format>
         <dc:type
            rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-        <dc:title></dc:title>
+        <dc:title />
       </cc:Work>
     </rdf:RDF>
   </metadata>
@@ -64,7 +64,7 @@
      id="layer1"
      transform="translate(0,-1032.3622)">
     <path
-       style="color:#000000;fill:#ff8800;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.50000000000000000;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       style="color:#000000;fill:#757575;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
        d="m 6,1037.3622 c -0.554,0 -1,0.446 -1,1 l 0,8 c 0,0.554 0.446,1 1,1 l 8,0 c 0.554,0 1,-0.446 1,-1 l 0,-8 c 0,-0.554 -0.446,-1 -1,-1 l -8,0 z m 0,1 8,0 0,8 -8,0 0,-8 z"
        id="rect4929"
        inkscape:connector-curvature="0" />
diff --git a/assets/images/svg/ic_checkbox_partialy.svg b/assets/images/svg/ic_checkbox_partialy.svg
new file mode 100644
index 000000000..2b30ade49
--- /dev/null
+++ b/assets/images/svg/ic_checkbox_partialy.svg
@@ -0,0 +1,79 @@
+<?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.91 r13725"
+   sodipodi:docname="ic_checkbox_partialy.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="22.4"
+     inkscape:cx="4.7369659"
+     inkscape:cy="4.3335279"
+     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="grid3846"
+       empspacing="4"
+       visible="true"
+       enabled="true"
+       snapvisiblegridlinesonly="true" />
+  </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,-1032.3622)">
+    <path
+       style="color:#000000;fill:#757575;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       d="m 6,1037.3622 c -0.554,0 -1,0.446 -1,1 l 0,8 c 0,0.554 0.446,1 1,1 l 8,0 c 0.554,0 1,-0.446 1,-1 l 0,-8 c 0,-0.554 -0.446,-1 -1,-1 l -8,0 z m 0,1 8,0 0,8 -8,0 0,-8 z"
+       id="rect4929"
+       inkscape:connector-curvature="0" />
+    <rect
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#ff8800;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4.19999981;stroke-opacity:1;marker:none;enable-background:accumulate"
+       id="rect4154"
+       width="6"
+       height="6"
+       x="7"
+       y="1039.3622" />
+  </g>
+</svg>
diff --git a/vlc-android/res/drawable-hdpi/ic_checkbox_false.png b/vlc-android/res/drawable-hdpi/ic_checkbox_false.png
new file mode 100644
index 000000000..3f6b15883
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/ic_checkbox_false.png differ
diff --git a/vlc-android/res/drawable-hdpi/ic_checkbox_partialy.png b/vlc-android/res/drawable-hdpi/ic_checkbox_partialy.png
new file mode 100644
index 000000000..a5ff1a035
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/ic_checkbox_partialy.png differ
diff --git a/vlc-android/res/drawable-hdpi/ic_checkbox_true.png b/vlc-android/res/drawable-hdpi/ic_checkbox_true.png
new file mode 100644
index 000000000..dbda0c965
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/ic_checkbox_true.png differ
diff --git a/vlc-android/res/drawable-ldpi/ic_checkbox_false.png b/vlc-android/res/drawable-ldpi/ic_checkbox_false.png
new file mode 100644
index 000000000..007af6cf0
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/ic_checkbox_false.png differ
diff --git a/vlc-android/res/drawable-ldpi/ic_checkbox_partialy.png b/vlc-android/res/drawable-ldpi/ic_checkbox_partialy.png
new file mode 100644
index 000000000..720c4547f
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/ic_checkbox_partialy.png differ
diff --git a/vlc-android/res/drawable-ldpi/ic_checkbox_true.png b/vlc-android/res/drawable-ldpi/ic_checkbox_true.png
new file mode 100644
index 000000000..e62a26c33
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/ic_checkbox_true.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_checkbox_false.png b/vlc-android/res/drawable-mdpi/ic_checkbox_false.png
new file mode 100644
index 000000000..19a56b7cc
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/ic_checkbox_false.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_checkbox_partialy.png b/vlc-android/res/drawable-mdpi/ic_checkbox_partialy.png
new file mode 100644
index 000000000..cb3a1f6b7
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/ic_checkbox_partialy.png differ
diff --git a/vlc-android/res/drawable-mdpi/ic_checkbox_true.png b/vlc-android/res/drawable-mdpi/ic_checkbox_true.png
new file mode 100644
index 000000000..bf2c25d3c
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/ic_checkbox_true.png differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_checkbox_false.png b/vlc-android/res/drawable-xhdpi/ic_checkbox_false.png
new file mode 100644
index 000000000..3cae4ad20
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/ic_checkbox_false.png differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_checkbox_partialy.png b/vlc-android/res/drawable-xhdpi/ic_checkbox_partialy.png
new file mode 100644
index 000000000..2520c2041
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/ic_checkbox_partialy.png differ
diff --git a/vlc-android/res/drawable-xhdpi/ic_checkbox_true.png b/vlc-android/res/drawable-xhdpi/ic_checkbox_true.png
new file mode 100644
index 000000000..1bcac928f
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/ic_checkbox_true.png differ



More information about the Android mailing list