jenkins-bot has submitted this change and it was merged. Change subject: Moar restriction icons! ......................................................................
Moar restriction icons! Icons for all important non-copyright restriction types. Also, some tweaks made in CSS e.g. add 1 px margin to top of mw-mmv-labels Finally, new test to check if default restriction is placed last. Example files: copydesign: https://commons.wikimedia.org/wiki/File:Peugeot_404_dsc01875.jpg trademark: https://commons.wikimedia.org/wiki/File:Logo_NIKE.svg trademark+insignia: https://commons.wikimedia.org/wiki/File:Flag_of_UNESCO.svg personality: https://commons.wikimedia.org/wiki/File:Vice_President_Megawati_Sukarnoputri_-_Indonesia.jpg communist+insignia: https://commons.wikimedia.org/wiki/File:Flag_of_Georgian_SSR.svg nazi: https://commons.wikimedia.org/wiki/File:PropagandaNaziJapaneseMonster.gif costume: https://commons.wikimedia.org/wiki/File:Shrek_%26_Fiona.jpg fan-art: https://commons.wikimedia.org/wiki/File:Magic_wand.gif (I think that's enough) Bug: T102693 Change-Id: I907396c59752511448145a4ac5d29096166f841f --- M MultimediaViewer.php M i18n/en.json M i18n/qqq.json A resources/mmv/ui/img/restrict-2257.svg A resources/mmv/ui/img/restrict-aus-reserve.svg A resources/mmv/ui/img/restrict-communist.svg A resources/mmv/ui/img/restrict-costume.svg A resources/mmv/ui/img/restrict-currency.svg A resources/mmv/ui/img/restrict-default.svg A resources/mmv/ui/img/restrict-design.svg A resources/mmv/ui/img/restrict-fan-art.svg A resources/mmv/ui/img/restrict-ihl.svg A resources/mmv/ui/img/restrict-insignia.svg A resources/mmv/ui/img/restrict-ita-mibac.svg A resources/mmv/ui/img/restrict-nazi.svg A resources/mmv/ui/img/restrict-personality.svg M resources/mmv/ui/mmv.ui.metadataPanel.js M resources/mmv/ui/mmv.ui.metadataPanel.less M tests/qunit/mmv/ui/mmv.ui.metadataPanel.test.js 19 files changed, 1,039 insertions(+), 15 deletions(-) Approvals: GergÅ‘ Tisza: Looks good to me, approved jenkins-bot: Verified diff --git a/MultimediaViewer.php b/MultimediaViewer.php index 4cb5b1c..fb790e3 100644 --- a/MultimediaViewer.php +++ b/MultimediaViewer.php @@ -271,7 +271,23 @@ // for license messages see end of file 'multimediaviewer-permission-link', 'multimediaviewer-permission-link-hide', + + 'multimediaviewer-restriction-2257', + 'multimediaviewer-restriction-aus-reserve', + 'multimediaviewer-restriction-communist', + 'multimediaviewer-restriction-costume', + 'multimediaviewer-restriction-currency', + 'multimediaviewer-restriction-design', + 'multimediaviewer-restriction-fan-art', + 'multimediaviewer-restriction-ihl', + 'multimediaviewer-restriction-insignia', + 'multimediaviewer-restriction-ita-mibac', + 'multimediaviewer-restriction-nazi', + 'multimediaviewer-restriction-personality', 'multimediaviewer-restriction-trademarked', + 'multimediaviewer-restriction-default', + 'multimediaviewer-restriction-default-and-others', + 'multimediaviewer-geoloc-north', 'multimediaviewer-geoloc-east', 'multimediaviewer-geoloc-south', diff --git a/i18n/en.json b/i18n/en.json index e105b2a..adfe8f4 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -43,7 +43,21 @@ "multimediaviewer-permission-link": "view terms", "multimediaviewer-permission-link-hide": "hide terms", "multimediaviewer-permission-viewmore": "View more", + "multimediaviewer-restriction-2257": "This image contains sexually explicit content which may be subject to the Child Protection and Obscenity Enforcement Act in the United States.", + "multimediaviewer-restriction-aus-reserve": "This image was photographed in an Australian Commonwealth reserve and cannot be used for commercial gain without a permit.", + "multimediaviewer-restriction-communist": "This image contains Communist insignia which may be banned in some countries.", + "multimediaviewer-restriction-costume": "This image depicts costuming and may be subject to legal restrictions.", + "multimediaviewer-restriction-currency": "This image represents a depiction of a unit of currency and may be subject to legal restrictions.", + "multimediaviewer-restriction-design": "The design of the subject of this image may be copyrighted and subject to legal restrictions.", + "multimediaviewer-restriction-fan-art": "This image is a work of fan art, and re-use may be subject to legal restrictions.", + "multimediaviewer-restriction-ihl": "This image contains symbols restricted by International Humanitarian Law.", + "multimediaviewer-restriction-insignia": "This image contains official insignia which may be subject to legal restrictions.", + "multimediaviewer-restriction-ita-mibac": "This image reproduces a property belonging to Italian cultural heritage and is restricted by Italian law.", + "multimediaviewer-restriction-nazi": "This image contains Nazi or other fascist insignia which may be banned in some countries.", + "multimediaviewer-restriction-personality": "This image contains persons who may have rights that legally restrict certain re-uses of the image without consent.", "multimediaviewer-restriction-trademarked": "This image contains content which may be subject to trademark laws.", + "multimediaviewer-restriction-default": "This image may be restricted by legal provisions outside of copyright law. See the file description page for details.", + "multimediaviewer-restriction-default-and-others": "This image may be further restricted by other legal provisions outside of copyright law. See the file description page for details.", "multimediaviewer-about-mmv": "About Media Viewer", "multimediaviewer-discuss-mmv": "Discuss this feature", "multimediaviewer-help-mmv": "Help", diff --git a/i18n/qqq.json b/i18n/qqq.json index 8ebf712..1ebacb0 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -50,7 +50,21 @@ "multimediaviewer-permission-link": "Text of the link (on top of the metadata box) which shows additional permission (by the copyright owner via OTRS) terms\n\nSee also:\n* {{msg-mw|multimediaviewer-permission-link-hide}}", "multimediaviewer-permission-link-hide": "Text of the link (on top of the metadata box) which hides additional permission terms\n\nSee also:\n* {{msg-mw|multimediaviewer-permission-link}}", "multimediaviewer-permission-viewmore": "Text of the link (at the cutoff of the permission term preview) which shows additional permission (by the copyright owner via OTRS) terms.\n{{Identical|View more}}", - "multimediaviewer-restriction-trademarked": "Text of the tooltip for the trademarked label, that is displayed when hovered over.", + "multimediaviewer-restriction-2257": "Text of the tooltip for the Child Protection and Obscenity Enforcement Act restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-aus-reserve": "Text of the tooltip for the Australian reserve restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-communist": "Text of the tooltip for the communist symbol restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-costume": "Text of the tooltip for the costuming restricitno label, that is displayed when hovered over.", + "multimediaviewer-restriction-currency": "Text of the tooltip for the currency restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-design": "Text of the tooltip for the copyrighted design restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-fan-art": "Text of the tooltip for the fan art restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-ihl": "Text of the tooltip for the IHL restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-insignia": "Text of the tooltip for the insignia restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-ita-mibac": "Text of the tooltip for the Italian MiBAC restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-nazi": "Text of the tooltip for the Nazi symbol restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-personality": "Text of the tooltip for the personality rights restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-trademarked": "Text of the tooltip for the trademarked restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-default": "Text of the tooltip for the default restriction label, that is displayed when hovered over.", + "multimediaviewer-restriction-default-and-others": "Text of the tooltip for the default restriction label when other restriction labels are present, that is displayed when hovered over.", "multimediaviewer-about-mmv": "Text for a link to a page with more information about Media Viewer software.", "multimediaviewer-discuss-mmv": "Text for a link to a page where the user can discuss the Media Viewer software.", "multimediaviewer-help-mmv": "Text for a link to a page with help about Media Viewer software.\n{{Identical|Help}}", diff --git a/resources/mmv/ui/img/restrict-2257.svg b/resources/mmv/ui/img/restrict-2257.svg new file mode 100644 index 0000000..0bdfd07 --- /dev/null +++ b/resources/mmv/ui/img/restrict-2257.svg @@ -0,0 +1,57 @@ +<?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" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.91 r13725" + width="64" + height="64" + sodipodi:docname="restrict-2257.svg" + version="1.0"> + <metadata + id="metadata7"> + <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> + <defs + id="defs5" /> + <sodipodi:namedview + inkscape:window-height="1018" + inkscape:window-width="1920" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + borderopacity="1.0" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" + inkscape:showpageshadow="false" + borderlayer="top" + inkscape:zoom="0.70710678" + inkscape:cx="-418.57051" + inkscape:cy="17.370656" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:current-layer="svg2" + showgrid="false" + inkscape:window-maximized="1" /> + <path + inkscape:connector-curvature="0" + id="path4148" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:medium;line-height:125%;font-family:sans-serif;-inkscape-font-specification:'sans-serif Bold';letter-spacing:0px;word-spacing:0px;fill:#333333;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="m 64.000001,63.43008 -18.744064,0 L 31.704486,42.744062 17.899736,63.43008 2.5000006e-8,63.43008 22.290238,31.767809 0.46438052,0.56992103 l 18.70184548,0 13.087073,19.58839097 13.467019,-19.58839097 17.941952,0 L 41.709763,31.134565 64.000001,63.43008 Z" /> +</svg> diff --git a/resources/mmv/ui/img/restrict-aus-reserve.svg b/resources/mmv/ui/img/restrict-aus-reserve.svg new file mode 100644 index 0000000..2a4caf4 --- /dev/null +++ b/resources/mmv/ui/img/restrict-aus-reserve.svg @@ -0,0 +1,58 @@ +<?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" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.91 r13725" + width="64" + height="64" + version="1.0" + sodipodi:docname="restrict-aus-reserve.svg"> + <metadata + id="metadata7"> + <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> + <defs + id="defs5" /> + <sodipodi:namedview + inkscape:window-height="1018" + inkscape:window-width="1920" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + guidetolerance="10.0" + gridtolerance="10.0" + objecttolerance="10.0" + borderopacity="1.0" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" + inkscape:zoom="2.8664436" + inkscape:cx="66.338087" + inkscape:cy="134.03511" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:current-layer="svg2" + showgrid="false" + inkscape:window-maximized="1" /> + <path + style="opacity:1;fill:#333333;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 49.023644,2.3460408 c -2.178279,2.26802 -2.005266,5.61904 -2.189166,8.5153302 -0.247848,3.16608 -3.671447,4.73225 -5.458814,1.81846 -2.272345,-1.16979 -7.087708,-3.0870402 -3.767387,-6.0098302 1.238676,-1.46116 1.624292,-2.65615 -0.662653,-2.30385 -2.316755,0.61442 -5.008708,-2.55058 -6.604872,-1.01089 0.671055,1.93294 -3.560463,0.54551 -3.974529,3.09203 -0.499197,2.20239 -1.535184,4.1337602 -3.750983,2.01584 -2.503123,-2.23678 -4.985831,1.9693602 -5.733182,2.7986102 0.85283,1.32381 -2.908828,1.1435 -0.965421,2.4904 -0.832249,2.00097 -1.931743,-3.07195 -2.564641,-0.0215 0.343281,3.52464 -2.840544,6.01028 -6.0483663,6.81867 -2.8099667,0.25162 -4.5722034,3.22271 -6.71320528,3.86955 -0.87090519,-1.03959 -0.65076233,4.01141 -0.15615473,5.45802 2.35263841,1.15194 -0.23378281,4.276 2.20492821,5.62724 1.1838554,2.5866 3.3209792,5.23404 3.16775,8.12926 -2.1862024,3.17218 3.6808216,4.56069 5.3432841,2.11072 1.912852,-2.35468 5.296836,-0.5655 7.319076,-2.55879 2.039406,-2.87437 6.430425,-2.89909 9.659943,-3.85697 3.369196,-0.27419 5.443317,1.80034 7.180689,4.09539 -0.429801,2.59595 1.588245,1.6557 2.096412,-0.13714 0.902752,-1.06586 2.573881,-1.66141 1.268795,0.22688 -0.996947,0.9886 -0.485155,3.61737 0.272649,1.10686 2.059665,-0.86105 -0.09952,2.62961 2.358847,2.51458 -0.02347,2.90544 2.293834,4.82963 5.199129,5.16805 2.455994,-0.57365 4.634414,1.69207 6.822386,-0.3609 4.329609,0.005 3.582469,-5.21858 6.362151,-7.34757 3.677589,-3.69191 4.850733,-9.22898 4.088895,-14.26134 -1.855715,-1.7468 -2.182003,-5.42961 -4.380975,-6.13365 -0.0605,-2.6196 -2.088014,-4.98372 -4.671446,-6.25687 -0.733722,-2.38842 -1.337559,-5.47317 -1.685326,-8.0953002 -4.132252,-0.3943 -1.932987,-4.89195 -4.017813,-7.50127 z M 48.62375,56.375581 c -0.892965,2.04344 0.675237,7.18921 3.696151,4.53406 1.100431,-1.98901 1.280056,-5.24765 -1.923261,-3.8001 -0.630161,-0.16109 -1.113154,-0.65493 -1.77289,-0.73396 z" + id="path1893" + inkscape:connector-curvature="0" /> +</svg> diff --git a/resources/mmv/ui/img/restrict-communist.svg b/resources/mmv/ui/img/restrict-communist.svg new file mode 100644 index 0000000..4432fc5 --- /dev/null +++ b/resources/mmv/ui/img/restrict-communist.svg @@ -0,0 +1,57 @@ +<?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" + version="1.1" + width="64" + height="64" + viewBox="0 0 64 64" + id="svg2" + xml:space="preserve" + style="fill-rule:evenodd" + inkscape:version="0.91 r13725" + sodipodi:docname="restrict-communist.svg"><sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="944" + inkscape:window-height="1002" + id="namedview98" + showgrid="false" + inkscape:zoom="4" + inkscape:cx="13.997384" + inkscape:cy="37.842966" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="0" + inkscape:current-layer="svg2" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" + inkscape:object-nodes="true" + inkscape:snap-bbox="true" + inkscape:snap-bbox-midpoints="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:bbox-nodes="true" /><defs + id="defs147" /><metadata + id="metadata4245"><rdf:RDF><cc:Work + rdf:about=""><dc:title /><dc:format>image/svg+xml</dc:format><dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><path + style="fill:#333333;fill-opacity:1;stroke:none" + d="M 31.933948,-1.3951166e-7 C 55.19084,15.901304 56.025453,29.211381 53.041136,40.015181 c -0.646275,2.339654 -1.731197,4.445653 -3.251917,6.189384 -1.289886,1.479033 -2.938716,2.724624 -4.996039,3.683553 -6.357189,2.963117 -16.169235,1.966118 -29.079754,-5.537049 l -2.441379,3.14645 c -0.516449,-0.384495 -1.79778,-0.860077 -2.783173,0.3457 -0.9527075,1.165817 0.394946,2.4979 -0.09961,3.36129 -0.4398736,0.767952 -0.5831262,0.747641 -3.3886339,2.480442 -5.5783307,3.445411 -6.78385307,8.087244 -5.1366616,9.708876 1.6074846,1.582442 6.3332146,-0.3477 9.0272425,-6.833908 1.139624,-2.74382 0.881685,-2.378671 1.751934,-3.310511 0.734137,-0.786241 2.083576,0.309895 2.951139,-0.669914 0.919299,-1.038019 0.371309,-2.532041 -0.0039,-3.042935 l 0.79296,-0.910146 c 13.014055,11.68778 26.153672,13.391697 35.114844,8.478422 l 6.146416,6.622973 c 0.639698,0.664473 2.23928,0.07052 3.583945,-1.326157 1.344665,-1.396725 1.911117,-3.056319 1.271469,-3.720662 L 56.707115,52.993552 C 60.026872,49.339183 62.176765,44.336754 62.681657,38.35309 64.472545,17.129166 48.109946,4.7085475 31.933948,-1.3951166e-7 Z M 22.949673,11.511591 9.4966978,25.487998 15.316945,31.5309 l 6.326102,-6.570239 3.164027,-3.289027 7.996006,-8.306548 -9.853407,-1.853495 z m 16.040838,7.988193 c -0.872221,0 -1.57888,0.27609 -2.121071,0.830068 -0.542191,0.553979 -0.812491,1.285753 -0.812491,2.193336 0,1.001871 0.27609,2.658486 0.830069,4.968695 l 0.919912,3.853472 c 0.459684,1.909454 0.729984,3.537111 0.812491,4.880805 l 0.779288,0 c 0.153228,-1.885881 0.394572,-3.513538 0.724601,-4.880805 l 0.93749,-3.853472 c 0.589338,-2.451647 0.882803,-4.125632 0.882803,-5.021429 0,-0.860434 -0.281882,-1.567092 -0.847648,-2.121071 -0.553977,-0.565764 -1.256798,-0.849599 -2.105444,-0.849599 z m 0.03711,19.253692 c -0.8015,0 -1.479202,0.283835 -2.03318,0.8496 -0.553978,0.565764 -0.832022,1.243463 -0.832022,2.033181 0,0.78971 0.278044,1.467415 0.832022,2.03318 0.565764,0.553979 1.243466,0.830069 2.033179,0.830069 0.789714,0 1.461626,-0.27609 2.015603,-0.830069 0.565765,-0.565765 0.847647,-1.24347 0.847647,-2.03318 0,-0.801504 -0.281882,-1.479203 -0.847647,-2.033181 -0.553977,-0.565765 -1.225889,-0.8496 -2.015603,-0.8496 z" + id="rect3221" + inkscape:connector-curvature="0" /></svg> \ No newline at end of file diff --git a/resources/mmv/ui/img/restrict-costume.svg b/resources/mmv/ui/img/restrict-costume.svg new file mode 100644 index 0000000..a193413 --- /dev/null +++ b/resources/mmv/ui/img/restrict-costume.svg @@ -0,0 +1,58 @@ +<?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" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.91 r13725" + width="64" + height="64" + sodipodi:docname="restrict-costume.svg" + version="1.0"> + <metadata + id="metadata7"> + <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> + <defs + id="defs5" /> + <sodipodi:namedview + inkscape:window-height="1018" + inkscape:window-width="1920" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + borderopacity="1.0" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" + inkscape:showpageshadow="false" + borderlayer="top" + inkscape:zoom="2" + inkscape:cx="-12.023655" + inkscape:cy="-49.828548" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:current-layer="svg2" + showgrid="false" + inkscape:window-maximized="1" /> + <path + sodipodi:nodetypes="cccccccccccccccccccccccccc" + inkscape:connector-curvature="0" + id="path2202" + d="M 50.476781,1.5431154e-7 C 43.871263,4.2286576 38.746088,10.862524 30.995783,13.187198 24.134093,15.365755 16.812381,14.452633 9.7647069,14.025766 6.1671177,12.60922 3.5091798,15.895575 4.9840561,19.275328 c 1.648017,9.517665 6.1743769,18.306507 11.4608359,26.296225 4.395366,6.309707 9.820648,12.151847 16.59945,15.906672 5.760837,2.91154 13.311862,3.862237 18.784634,-0.206226 4.091458,-2.591614 5.259118,-7.596163 6.422339,-11.969017 2.204788,-9.96018 0.865159,-20.240173 -0.353577,-30.234177 C 57.069311,13.810519 54.906701,8.8977959 53.036954,3.9507241 52.308871,2.6057625 51.837782,0.84918192 50.476781,1.5431154e-7 Z M 44.182364,13.741062 c 3.164794,0.798814 11.21163,2.412565 6.019802,5.539003 l -13.198757,4.313568 c 1.263267,-5.244774 0.319773,-11.220384 7.178955,-9.852571 z m -22.347032,8.715747 c 3.164835,0.798999 11.211661,2.413037 6.01972,5.539373 l -13.199158,4.313137 c 1.263308,-5.244949 0.320256,-11.220436 7.179438,-9.85251 z m 29.926211,10.934046 c 5.181419,3.660543 1.884913,9.062357 0.85324,12.706244 -1.708895,4.281275 -11.064064,9.595065 -15.575134,7.468869 -4.523976,-1.543389 -7.243193,-2.463837 -11.859211,-6.900384 -0.629167,-6.496163 3.779854,-3.114633 7.054784,-2.573078 5.357242,1.75207 12.295334,0.678548 14.994258,-4.813222 1.565326,-2.515201 1.582341,-4.70883 4.532063,-5.888429 z" + style="fill:#333333;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.56313932;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> +</svg> diff --git a/resources/mmv/ui/img/restrict-currency.svg b/resources/mmv/ui/img/restrict-currency.svg new file mode 100644 index 0000000..5cea66a --- /dev/null +++ b/resources/mmv/ui/img/restrict-currency.svg @@ -0,0 +1,102 @@ +<?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="64" + height="64" + id="svg2165" + sodipodi:version="0.32" + inkscape:version="0.91 r13725" + sodipodi:docname="restrict-currency.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + version="1.0"> + <defs + id="defs2167"> + <marker + viewBox="0 0 10 10" + refY="5" + refX="10" + orient="auto" + markerWidth="4" + markerUnits="strokeWidth" + markerHeight="3" + id="ArrowStart"> + <path + id="path3257" + d="M 10,0 0,5 10,10 10,0 Z" + inkscape:connector-curvature="0" /> + </marker> + <marker + viewBox="0 0 10 10" + refY="5" + refX="0" + orient="auto" + markerWidth="4" + markerUnits="strokeWidth" + markerHeight="3" + id="ArrowEnd"> + <path + id="path3254" + d="M 0,0 10,5 0,10 0,0 Z" + inkscape:connector-curvature="0" /> + </marker> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="2.8284271" + inkscape:cx="-47.049723" + inkscape:cy="-6.8468346" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="1920" + inkscape:window-height="1018" + inkscape:window-x="-8" + inkscape:window-y="-8" + showguides="true" + inkscape:guide-bbox="true" + width="600px" + height="635px" + showgrid="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true" + inkscape:snap-page="true" + inkscape:window-maximized="1" /> + <metadata + id="metadata2170"> + <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(-56.410688,-689.47454)"> + <path + style="font-style:normal;font-weight:normal;font-size:844px;font-family:'Agfa Rotis Semisans';fill:#333333;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 30.689453 0.31835938 C 24.561717 0.18383938 18.785129 3.7871438 16.115234 9.1523438 L 12.910156 8.5058594 L 11.253906 10.841797 L 15.171875 11.630859 C 15.014536 12.043959 14.927887 12.470957 14.841797 12.898438 C 14.755657 13.325897 14.669148 13.753492 14.654297 14.195312 L 11.876953 13.634766 L 10.220703 15.970703 L 14.566406 16.845703 C 15.02733 23.758923 20.113318 29.973259 27.130859 31.386719 C 31.013669 32.168779 34.956028 31.368774 38.201172 29.427734 L 38.949219 25.722656 C 35.966767 28.383856 31.81427 29.661716 27.646484 28.822266 C 21.946951 27.674276 17.829358 22.913673 17.238281 17.382812 L 34.583984 20.878906 L 36.242188 18.542969 L 17.21875 14.710938 C 17.23361 14.269127 17.320199 13.843476 17.40625 13.416016 C 17.47799 13.059806 17.578988 12.559594 17.736328 12.146484 L 37.898438 16.208984 L 39.554688 13.873047 L 18.787109 9.6894531 C 21.423297 4.8827531 27.041718 2.0115081 32.8125 3.1738281 C 37.30088 4.0778681 40.312229 6.7984438 42.039062 10.371094 L 43.689453 8.0703125 C 41.478261 4.3259625 37.818462 1.513415 33.330078 0.609375 C 32.44843 0.431805 31.56484 0.33757938 30.689453 0.31835938 z M 48.142578 27.070312 C 47.226738 27.085912 46.271654 27.220719 45.277344 27.474609 C 42.699082 28.133039 40.677578 29.374962 39.208984 31.201172 C 37.390692 33.491252 36.868387 36.160031 37.646484 39.207031 C 37.829793 39.924871 38.083715 40.644494 38.408203 41.365234 C 38.732713 42.086024 39.345634 43.203463 40.248047 44.720703 L 36.865234 45.583984 L 37.695312 48.837891 L 42.001953 47.738281 C 42.486663 48.597601 42.842122 49.473597 43.070312 50.367188 C 43.601524 52.447378 43.562219 54.335717 42.949219 56.029297 C 42.336189 57.722877 41.42681 59.135954 40.21875 60.271484 L 42.705078 63.685547 C 43.525708 62.804997 44.485547 62.030485 45.585938 61.359375 C 46.686318 60.688265 47.763599 60.218569 48.818359 59.949219 C 49.506859 59.773399 50.211238 59.656296 50.929688 59.597656 C 51.391608 59.573256 52.431391 59.599634 54.050781 59.677734 C 55.670151 59.755434 56.687312 59.779653 57.101562 59.751953 C 57.761392 59.708353 58.400355 59.608302 59.015625 59.451172 C 59.748075 59.264142 60.459387 58.987747 61.154297 58.623047 C 61.849157 58.258347 62.79815 57.618615 64 56.703125 L 61.798828 53.402344 C 60.279698 54.664134 58.978541 55.434107 57.894531 55.710938 C 57.000901 55.939128 55.217932 56.074347 52.544922 56.117188 C 50.927882 56.140088 49.512745 56.308651 48.296875 56.619141 C 47.344665 56.862301 46.328896 57.290383 45.253906 57.908203 C 46.267746 56.073253 46.897498 54.369199 47.142578 52.792969 C 47.387638 51.216769 47.348878 49.790115 47.023438 48.515625 C 46.858828 47.871075 46.554258 47.262953 46.111328 46.689453 L 52.351562 45.095703 L 51.521484 41.84375 L 44.599609 43.609375 C 43.094977 41.200425 42.135943 39.182731 41.720703 37.556641 C 41.342877 36.077111 41.557937 34.677879 42.367188 33.355469 C 43.176417 32.033139 44.393461 31.16527 46.019531 30.75 C 47.543041 30.36098 48.978635 30.531592 50.328125 31.263672 C 51.677595 31.995792 52.688762 33.212313 53.357422 34.914062 L 57.138672 33.316406 C 56.069772 30.780596 54.488021 29.004398 52.394531 27.986328 C 51.086081 27.350088 49.668988 27.044422 48.142578 27.070312 z M 13.154297 28.074219 L 12.414062 31.701172 C 10.886904 31.389752 3.6333082 31.857299 2.4101562 37.855469 C 1.3220382 43.191439 5.9815075 45.658547 9.3203125 46.835938 L 8.0976562 52.867188 C 5.7292133 51.666928 5.6487562 49.716768 5.6132812 48.111328 L 0.10546875 46.988281 C -0.77733125 53.058861 4.1374863 56.966353 7.0507812 58.001953 L 6.2988281 61.691406 L 11.533203 62.757812 L 12.273438 59.126953 C 16.461729 59.760263 22.073143 57.317189 23.035156 52.599609 C 24.136958 47.196509 19.560632 44.665737 15.480469 43.404297 L 16.607422 37.876953 C 18.223171 38.322743 19.182159 40.148108 18.996094 41.767578 L 24.451172 42.878906 C 25.544186 37.518916 21.046816 33.665522 17.59375 32.757812 L 18.333984 29.128906 L 13.154297 28.074219 z M 11.386719 36.867188 L 10.453125 41.447266 C 6.773138 40.638676 7.4939448 36.735518 11.386719 36.867188 z M 14.445312 48.775391 C 18.990538 49.818571 18.606892 54.307886 13.382812 53.972656 L 14.445312 48.775391 z " + transform="translate(56.410688,689.47454)" + id="path4160" /> + </g> +</svg> diff --git a/resources/mmv/ui/img/restrict-default.svg b/resources/mmv/ui/img/restrict-default.svg new file mode 100644 index 0000000..9ba4c23 --- /dev/null +++ b/resources/mmv/ui/img/restrict-default.svg @@ -0,0 +1,73 @@ +<?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="64" + height="64" + viewBox="0 0 64.000001 64.000001" + id="svg5819" + version="1.1" + inkscape:version="0.91 r13725" + sodipodi:docname="restrict-default.svg"> + <defs + id="defs5821" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1.979899" + inkscape:cx="-84.739587" + inkscape:cy="54.208743" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="false" + units="px" + inkscape:snap-page="true" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true" + inkscape:bbox-paths="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:window-width="1920" + inkscape:window-height="1018" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:window-maximized="1"> + <inkscape:grid + type="xygrid" + id="grid6376" /> + </sodipodi:namedview> + <metadata + id="metadata5824"> + <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,-988.36216)"> + <path + style="fill:#333333;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" + d="M 32.166016 3.8144531 A 3.5558667 3.5558667 0 0 0 28.919922 5.5898438 L 0.4765625 54.855469 A 3.5558667 3.5558667 0 0 0 3.5566406 60.189453 L 60.443359 60.189453 A 3.5558667 3.5558667 0 0 0 63.523438 54.855469 L 35.080078 5.5898438 A 3.5558667 3.5558667 0 0 0 32.166016 3.8144531 z M 31.990234 22.191406 C 32.927734 22.191406 33.702474 22.503906 34.314453 23.128906 C 34.939453 23.740885 35.251953 24.522135 35.251953 25.472656 C 35.251953 26.46224 34.926432 28.311198 34.275391 31.019531 L 33.240234 35.277344 C 32.875651 36.78776 32.608724 38.584635 32.439453 40.667969 L 31.580078 40.667969 C 31.488932 39.183594 31.189453 37.386719 30.681641 35.277344 L 29.666016 31.019531 C 29.054036 28.467448 28.748047 26.638021 28.748047 25.53125 C 28.748047 24.528646 29.047526 23.721354 29.646484 23.109375 C 30.245443 22.497396 31.026693 22.191406 31.990234 22.191406 z M 32.029297 43.460938 C 32.901693 43.460938 33.64388 43.773438 34.255859 44.398438 C 34.880859 45.010417 35.193359 45.759115 35.193359 46.644531 C 35.193359 47.516927 34.880859 48.265625 34.255859 48.890625 C 33.64388 49.502604 32.901693 49.808594 32.029297 49.808594 C 31.156901 49.808594 30.408203 49.502604 29.783203 48.890625 C 29.171224 48.265625 28.865234 47.516927 28.865234 46.644531 C 28.865234 45.772135 29.171224 45.023438 29.783203 44.398438 C 30.395182 43.773438 31.14388 43.460938 32.029297 43.460938 z " + id="path6398" + transform="translate(0,988.36216)" /> + </g> +</svg> diff --git a/resources/mmv/ui/img/restrict-design.svg b/resources/mmv/ui/img/restrict-design.svg new file mode 100644 index 0000000..62ae855 --- /dev/null +++ b/resources/mmv/ui/img/restrict-design.svg @@ -0,0 +1,63 @@ +<?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" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.91 r13725" + width="64" + height="64" + version="1.0" + sodipodi:docname="restrict-design.svg"> + <metadata + id="metadata7"> + <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> + <defs + id="defs5" /> + <sodipodi:namedview + inkscape:window-height="1018" + inkscape:window-width="1920" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + guidetolerance="10.0" + gridtolerance="10.0" + objecttolerance="10.0" + borderopacity="1.0" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" + inkscape:zoom="5.6568542" + inkscape:cx="14.262728" + inkscape:cy="19.025524" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:current-layer="svg2" + showgrid="false" + inkscape:window-maximized="1" + inkscape:snap-page="true" + inkscape:snap-bbox="true" + inkscape:snap-bbox-edge-midpoints="true" + showguides="true" + inkscape:guide-bbox="true" + inkscape:object-nodes="true" /> + <path + style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#333333;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:20;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" + d="M 15.375 0 L 15.375 15.375 L 0 15.375 L 0 16.375 L 15.375 16.375 L 15.375 31.5 L 0 31.5 L 0 32.5 L 15.375 32.5 L 15.375 47.625 L 0 47.625 L 0 48.625 L 15.375 48.625 L 0 64 L 15.375 64 L 16.375 64 L 31.5 64 L 32.5 64 L 47.625 64 L 48.625 64 L 64 64 L 64 48.625 L 64 47.625 L 64 32.5 L 64 31.5 L 64 16.375 L 64 15.375 L 64 0 L 52.869141 11.132812 L 48.626953 15.375 L 48.625 15.375 L 48.625 0 L 47.625 0 L 47.625 15.375 L 32.5 15.375 L 32.5 0 L 31.5 0 L 31.5 15.375 L 16.375 15.375 L 16.375 0 L 15.375 0 z M 16.375 16.375 L 31.5 16.375 L 31.5 31.5 L 16.375 31.5 L 16.375 16.375 z M 32.5 16.375 L 47.625 16.375 L 47.625 16.376953 L 32.501953 31.5 L 32.5 31.5 L 32.5 16.375 z M 50.957031 31.486328 L 50.957031 31.5 L 50.943359 31.5 L 50.957031 31.486328 z M 16.375 32.5 L 31.5 32.5 L 31.5 32.501953 L 16.375 47.625 L 16.375 32.5 z M 49.943359 32.5 L 50.957031 32.5 L 50.957031 47.625 L 48.625 47.625 L 48.625 33.818359 L 49.943359 32.5 z M 47.625 34.818359 L 47.625 47.625 L 34.818359 47.625 L 47.625 34.818359 z M 33.818359 48.625 L 47.625 48.625 L 47.625 50.957031 L 32.5 50.957031 L 32.5 49.943359 L 33.818359 48.625 z M 48.625 48.625 L 50.957031 48.625 L 50.957031 50.957031 L 48.625 50.957031 L 48.625 48.625 z M 31.5 50.943359 L 31.5 50.957031 L 31.486328 50.957031 L 31.5 50.943359 z " + id="rect4189" /> +</svg> diff --git a/resources/mmv/ui/img/restrict-fan-art.svg b/resources/mmv/ui/img/restrict-fan-art.svg new file mode 100644 index 0000000..6bb8ffe --- /dev/null +++ b/resources/mmv/ui/img/restrict-fan-art.svg @@ -0,0 +1,57 @@ +<?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" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.91 r13725" + width="64" + height="64" + version="1.0" + sodipodi:docname="restrict-fan-art.svg"> + <metadata + id="metadata7"> + <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> + <defs + id="defs5" /> + <sodipodi:namedview + inkscape:window-height="1018" + inkscape:window-width="1920" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + guidetolerance="10.0" + gridtolerance="10.0" + objecttolerance="10.0" + borderopacity="1.0" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" + inkscape:zoom="1" + inkscape:cx="-116.54628" + inkscape:cy="22.407136" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:current-layer="svg2" + showgrid="false" + inkscape:window-maximized="1" /> + <path + style="fill:#333333;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 21.144531 2.0078125 C 20.375138 2.0286607 19.715558 2.5874788 19.558594 3.3808594 L 8.8789062 41.908203 C 8.5273306 43.685241 9.7508894 45.380542 11.535156 45.693359 C 13.319423 46.006176 15.046404 44.827761 15.320312 43.037109 L 22.828125 3.953125 C 22.968264 3.0369376 22.384565 2.192051 21.478516 2.0332031 C 21.36526 2.0133471 21.254445 2.0048342 21.144531 2.0078125 z M 39.574219 9.6582031 C 38.413934 9.6819391 37.205021 9.8232514 35.941406 10.103516 C 30.796288 11.244682 25.402211 13.453984 21.197266 17.824219 L 16.324219 43.193359 C 16.154493 44.294703 15.542153 45.196295 14.724609 45.828125 C 15.173946 46.64384 15.382359 47.682625 15.273438 49.058594 C 19.083163 58.755174 28.459128 61.992188 33.566406 61.992188 C 40.326417 61.992188 55.856873 58.885698 54.943359 50.664062 C 54.029843 42.442426 45.99078 40.614278 46.904297 36.412109 C 47.817811 32.209939 56.405767 39.702781 59.511719 40.433594 C 62.61767 41.164405 67.549418 29.289652 60.058594 21.798828 C 53.504122 15.244357 47.696226 9.4920508 39.574219 9.6582031 z M 39.921875 12.943359 C 41.211823 12.921539 42.558077 13.5727 43.521484 14.681641 C 45.133647 16.536328 45.216383 19.103825 43.705078 20.417969 C 42.193197 21.731672 39.658903 21.292543 38.046875 19.4375 C 36.434713 17.582812 36.351976 15.013362 37.863281 13.699219 C 38.414862 13.219654 39.134387 12.956922 39.921875 12.943359 z M 28.953125 18.037109 C 30.322004 18.086289 31.723423 18.658014 32.863281 19.628906 C 35.282904 21.69055 35.883641 24.959965 34.203125 26.931641 C 32.522769 28.902896 29.198309 28.829138 26.779297 26.767578 C 24.361006 24.706294 23.762344 21.438374 25.441406 19.466797 C 26.263465 18.501881 27.5311 17.985827 28.953125 18.037109 z M 22.482422 30.089844 C 23.251233 30.072484 24.045803 30.256191 24.771484 30.615234 C 26.864189 31.649232 27.877583 33.868576 27.035156 35.574219 C 26.192431 37.28033 23.811821 37.825808 21.71875 36.791016 C 19.625563 35.75644 18.61315 33.533674 19.457031 31.828125 C 19.976644 30.776927 21.116331 30.12147 22.482422 30.089844 z M 23.628906 43.203125 C 23.715746 43.206325 23.802082 43.212513 23.888672 43.220703 C 25.918949 43.408617 27.440541 44.903985 27.287109 46.558594 C 27.133462 48.213023 25.362042 49.399583 23.332031 49.210938 C 21.302253 49.022486 19.782067 47.529238 19.935547 45.875 C 20.081445 44.302998 21.694532 43.135892 23.628906 43.203125 z M 8.90625 44.955078 C 7.8112365 45.499197 6.6835283 46.46167 5.7285156 47.861328 C 3.7306628 50.789362 6.7680788 52.868065 5.0566406 56.279297 C 3.3452022 59.690528 0 61.828125 0 61.828125 C 0 61.828125 11.10072 59.1946 13.306641 52.962891 C 14.649869 49.168289 14.493523 47.260864 13.810547 46.148438 C 13.079812 46.484105 12.243754 46.610748 11.400391 46.462891 C 10.376207 46.283331 9.5085193 45.719585 8.90625 44.955078 z " + id="path4152" /> +</svg> diff --git a/resources/mmv/ui/img/restrict-ihl.svg b/resources/mmv/ui/img/restrict-ihl.svg new file mode 100644 index 0000000..51cae4a --- /dev/null +++ b/resources/mmv/ui/img/restrict-ihl.svg @@ -0,0 +1,59 @@ +<?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" + version="1.1" + width="64" + height="64" + id="svg2" + inkscape:version="0.91 r13725" + sodipodi:docname="restrict-ihl.svg"> + <metadata + id="metadata31"> + <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> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1920" + inkscape:window-height="1018" + id="namedview29" + showgrid="false" + inkscape:object-nodes="true" + inkscape:zoom="0.25" + inkscape:cx="-188.39564" + inkscape:cy="55.752705" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:window-maximized="1" + inkscape:current-layer="svg2" /> + <defs + id="defs4" /> + <path + style="fill:#333333;fill-opacity:1;stroke:none" + d="m 34.923387,0.06109857 c -0.539421,-0.071278 -1.103342,0.1571576 -1.744493,0.8002572 C 31.881854,2.1623383 31.413803,4.0256728 31.695573,5.9843408 L 5.6721461,32.068038 c -1.864574,-0.200093 -3.625001,0.276223 -4.86516191,1.520154 -2.56459929,2.572397 1.50900731,3.916636 4.87520641,7.272628 l 5.2234364,5.206695 c 3.3662,3.355994 4.711379,7.417468 7.275979,4.845071 1.243922,-1.247703 1.717366,-3.01835 1.50676,-4.888599 L 30.482477,35.204012 c 13.061005,14.524857 16.599826,17.1314 25.407356,26.958003 0.0555,0.06185 0.11614,0.125308 0.175807,0.184052 1.849627,1.8208 5.628272,2.136367 7.037884,0.722468 1.455083,-1.459508 1.133496,-5.374528 -0.925745,-7.210948 C 52.329544,47.075019 49.630978,43.627237 35.071706,30.602894 L 45.932785,19.715951 c 1.772088,0.132278 3.435511,-0.341377 4.62073,-1.530199 2.564599,-2.572396 -1.509008,-3.916634 -4.875206,-7.272631 L 40.454872,5.7064277 C 37.930225,3.1894304 36.541651,0.27493007 34.923387,0.06109857 Z" + id="path4201" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ssccsccsccccssccsccs" /> +</svg> diff --git a/resources/mmv/ui/img/restrict-insignia.svg b/resources/mmv/ui/img/restrict-insignia.svg new file mode 100644 index 0000000..9533f15 --- /dev/null +++ b/resources/mmv/ui/img/restrict-insignia.svg @@ -0,0 +1,75 @@ +<?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="64" + height="64" + viewBox="0 0 64.000001 64.000001" + id="svg4133" + version="1.1" + inkscape:version="0.91 r13725" + sodipodi:docname="restrict-insignia.svg"> + <defs + id="defs4135" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="8" + inkscape:cx="55.468687" + inkscape:cy="31.605339" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true" + inkscape:object-nodes="true" + inkscape:snap-bbox-edge-midpoints="true" + inkscape:snap-global="false" + units="px" + inkscape:window-width="1920" + inkscape:window-height="1018" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:window-maximized="1" /> + <metadata + id="metadata4138"> + <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,-988.36216)"> + <path + style="fill:#333333;fill-opacity:1;stroke:none;stroke-width:20;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 30.296874,988.36216 c -0.04069,10e-4 -0.08154,0.007 -0.125,0.0156 -0.315204,-0.0277 -1.217087,0.4266 -0.728516,0.64843 0.62224,-0.0875 1.126644,0.20414 1.265625,0.82032 0.427386,0.42488 0.431869,1.24839 -0.283203,1.36132 -0.614351,0.12636 -1.179413,-0.26943 -1.773437,-0.36718 -0.363784,-0.59013 0.886966,-0.63829 0.677734,-1.16602 -0.28344,-0.54084 -1.280321,-0.79387 -1.441406,-0.0273 -0.235667,0.57232 -0.217269,1.26908 -0.703125,1.71679 -0.40728,0.51428 -0.334432,1.22011 -0.837891,1.60157 -0.05457,0.71013 0.85887,0.67027 1.1875,1.1289 0.34661,0.39899 0.813903,1.00168 1.41211,0.70117 0.696425,-0.32188 0.389565,-1.24491 0.902343,-1.67968 0.748122,-0.55621 0.28792,0.79157 0.511719,0.95507 0.371463,-0.0265 0.964298,-0.11485 0.773438,0.4668 0.26092,0.45174 0.103735,0.5578 -0.81836,1.16016 -0.498207,-0.58208 -1.488665,-0.0994 -1.335937,0.14453 0.507752,0.16331 2.102392,-0.30347 2.101562,0.47266 -0.209075,0.71448 -1.087783,0.8077 -1.689453,0.57031 -0.621086,-0.10983 -1.236557,-0.26999 -1.871094,-0.26563 -0.653149,-0.0453 -1.280407,0.32965 -1.660156,0.84375 -0.156103,0.58902 -0.737018,1.30845 -0.265625,1.87891 0.705494,0.31244 1.012405,-0.67529 1.572266,-0.89844 0.612268,-0.33695 1.36117,-0.2437 2.037109,-0.28515 0.673686,-0.009 1.343992,-0.0147 2.007813,0.10351 0.26244,0.0156 0.524409,0.0257 0.787109,0.0332 0.26269,-0.008 0.524669,-0.0176 0.787109,-0.0332 0.66382,-0.11826 1.334133,-0.11211 2.007813,-0.10351 0.67594,0.0415 1.424839,-0.0518 2.037109,0.28515 0.55986,0.22315 0.866776,1.21088 1.572266,0.89844 0.4714,-0.57046 -0.109525,-1.28989 -0.265625,-1.87891 -0.37975,-0.5141 -1.007006,-0.8891 -1.660156,-0.84375 -0.63454,-0.004 -1.250014,0.1558 -1.871094,0.26563 -0.60167,0.23739 -1.480373,0.14417 -1.689453,-0.57031 -8.2e-4,-0.77613 1.593802,-0.30935 2.101562,-0.47266 0.15272,-0.24397 -0.837737,-0.72661 -1.335937,-0.14453 -0.9221,-0.60236 -1.07928,-0.70842 -0.81836,-1.16016 -0.19086,-0.58165 0.401968,-0.49327 0.773438,-0.4668 0.22379,-0.1635 -0.236401,-1.51128 0.511719,-0.95507 0.51278,0.43477 0.205923,1.3578 0.902343,1.67968 0.59821,0.30051 1.0655,-0.30218 1.41211,-0.70117 0.32863,-0.45863 1.24207,-0.41877 1.1875,-1.1289 -0.50346,-0.38146 -0.430611,-1.08729 -0.837891,-1.60157 -0.48586,-0.44771 -0.467455,-1.14447 -0.703125,-1.71679 -0.16109,-0.76649 -1.157966,-0.51346 -1.441406,0.0273 -0.20923,0.52773 1.041524,0.57589 0.677734,1.16602 -0.59402,0.0978 -1.159077,0.49354 -1.773437,0.36718 -0.71507,-0.11293 -0.710593,-0.93644 -0.283203,-1.36132 0.13898,-0.61618 0.643385,-0.9078 1.265625,-0.82032 0.48857,-0.22183 -0.413306,-0.67615 -0.728516,-0.64843 -0.0435,-0.009 -0.08433,-0.0144 -0.125,-0.0156 -0.6104,-0.0175 -0.922485,0.76262 -1.328125,1.13477 -0.0837,0.0981 -0.169262,0.19734 -0.232422,0.31054 -0.0389,0.13039 -0.08772,0.25492 -0.142578,0.37696 -0.0549,-0.12204 -0.103688,-0.24657 -0.142578,-0.37696 -0.0632,-0.1132 -0.148702,-0.21247 -0.232422,-0.31054 -0.40565,-0.37215 -0.717726,-1.15231 -1.328125,-1.13477 z m 2.212891,11.51758 c -1.719877,0.031 -3.463125,0.78216 -4.814454,2.50196 -2.402364,3.0576 -0.436266,2.7681 0.728516,4.2969 1.164783,1.5288 1.238115,4.7311 -0.07227,5.9687 0,0 3.785324,-3.7123 5.095704,-3.7851 1.31038,-0.073 3.05664,1.5293 3.05664,1.5293 0,0 -0.799537,-2.1126 -0.435547,-3.2774 0.364,-1.1648 2.76671,-4.4408 0.21875,-6.1152 -1.11474,-0.7325 -2.439663,-1.14346 -3.777339,-1.11916 z m -9.404297,0.10156 c -0.187249,-0.013 -0.39179,0.1247 -0.63086,0.5117 -0.974248,-0.062 -1.693623,-0.3922 -2.707031,-0.025 -1.61622,-0.2711 -2.537769,1.201 -3.314453,2.3516 -0.257674,0.9897 0.710242,1.623 1.582031,1.5351 0.17636,-0.1364 0.379171,-0.2201 0.625,-0.2148 0.01323,-0.01 0.02612,-0.014 0.03906,-0.023 1.092458,-0.5424 -0.188462,-2.9675 1.603515,-2.2754 0.530317,0.7464 0.159796,3.3126 -1.220703,2.3847 -0.155032,-0.057 -0.293465,-0.081 -0.421875,-0.084 -0.187735,0.1217 -0.403164,0.1904 -0.625,0.2128 -0.584786,0.4522 -0.889144,1.4829 -1.585937,1.7657 -1.152591,0.9772 0.17866,2.2117 0.18164,3.3457 0.02578,1.4209 1.537347,2.6449 2.921875,2.1054 1.545371,-0.068 2.054799,-1.6373 0.609375,-2.3652 -0.68514,-0.9509 -1.825208,-1.3752 -2.605468,-2.2168 1.696983,-0.4335 3.125581,0.8578 4.662109,1.2754 1.915904,0.2027 4.129292,-1.5555 3.636719,-3.6094 0.120042,-1.2257 -1.446204,-1.9898 -0.992188,-3.3144 -0.124044,-0.082 -0.27685,0.023 -0.378906,0.084 -0.535029,-0.3843 -0.900379,-1.4089 -1.378906,-1.4434 z m 17.789062,0 c -0.47852,0.035 -0.843876,1.0591 -1.378906,1.4434 -0.10206,-0.061 -0.252903,-0.1665 -0.376953,-0.084 0.45402,1.3246 -1.114191,2.0869 -0.994141,3.3125 -0.49258,2.0539 1.720819,3.8121 3.636719,3.6094 1.53653,-0.4175 2.965129,-1.7089 4.662109,-1.2754 -0.78026,0.8416 -1.920328,1.2678 -2.605468,2.2187 -1.44543,0.7278 -0.935995,2.2969 0.609375,2.3652 1.38453,0.5395 2.896095,-0.6845 2.921875,-2.1054 0.003,-1.1341 1.33423,-2.3685 0.18164,-3.3457 -0.69679,-0.2828 -1.001147,-1.3135 -1.585937,-1.7657 -0.22181,-0.022 -0.43729,-0.091 -0.625,-0.2128 -0.12838,0 -0.266885,0.028 -0.421875,0.084 -1.3805,0.9279 -1.751023,-1.6403 -1.220703,-2.3867 1.79197,-0.6921 0.511055,1.7331 1.603515,2.2754 0.0129,0.01 0.02586,0.017 0.03906,0.025 0.24588,0 0.44862,0.078 0.625,0.2148 0.87183,0.088 1.839721,-0.5454 1.582031,-1.5351 -0.77669,-1.1506 -1.698233,-2.6227 -3.314453,-2.3516 -1.01341,-0.3668 -1.732791,-0.038 -2.707031,0.025 -0.23907,-0.387 -0.44361,-0.5252 -0.63086,-0.5117 z m -31.1523432,7.9922 c -0.05637,0 -0.1131729,0 -0.1699219,0.012 -0.767592,0.4876 -1.8776619,0.1693 -2.7792968,0.1543 -0.526991,0.5599 0.018153,1.0304 0.1035156,1.543 0.476483,0.9085 0.071837,2.1244 -0.1035156,3.0898 -0.5069151,0.9299 0.7444243,1.1868 0.4121093,2.1621 -0.423725,0.4076 -0.599294,0.9754 -0.515625,1.6699 0.06709,0.6169 -0.1619966,1.1122 -0.1035156,1.7266 0.189613,0.781 0.2632861,1.8192 0.8300781,2.5723 0.356055,0.5942 0.1457549,1.4106 0.2011719,2.125 0.01376,1.1488 0.2313037,2.2088 -0.2695313,3.3281 -0.3689619,1.1379 -0.931921,2.2813 -1.171875,3.2988 -0.350233,0.8015 -0.8645611,1.9211 -1.2363281,2.8828 -0.30438,0.7073 -0.3554392,2.1776 -1.4414062,1.545 -0.355469,-0.6368 0.2064886,-1.5137 0.1035156,-2.2657 0.221362,-0.8147 0.082206,-1.7825 0.4121094,-2.5722 0.155876,-0.9462 0.088449,-1.9833 0.1015625,-2.9883 0.07742,-0.8212 -0.1153751,-1.186 -0.7207032,-1.543 -0.2858999,-0.8505 -0.5819948,-1.6494 -0.5136718,-2.5937 -0.181056,-0.7068 -0.077852,-1.5185 -0.1035156,-2.2871 -0.07043,-0.4454 0.2703151,-1.5963 -0.5136719,-1.0899 -0.727423,0.4717 -1.53289873,1.1256 -1.33984374,2.0801 -0.208933,1.4207 0.96122604,2.4841 1.23632804,3.7891 5.151e-4,1.6538 -3.089e-4,3.3068 0,4.9609 0.05162,0.6055 -0.1127863,1.2967 0.1035157,1.834 l 0,2.3691 c -0.232857,1.0999 0.5550971,1.6492 1.1425781,2.4121 0.03123,1.8311 1.4165995,0.066 1.4296875,-0.7675 -0.08606,-0.5608 0.7343096,-2.3923 0.6191406,-2.0586 0.03308,1.066 -0.44006,2.047 -0.515625,3.0879 -0.0012,0.7 8.24e-4,1.4012 0,2.1015 -0.04707,0.9775 0.5572765,1.6807 0.7734375,2.4434 0.652736,0.911 0.7986533,2.2062 1.5976563,3.125 -0.117441,1.5789 2.0866117,1.2449 2.2617187,0.2363 -0.120464,-0.7358 0.2321903,-1.2793 0.2070313,-1.9766 0.08444,-0.8487 -1.1709063,-0.8789 -1.6445313,-1.4199 -0.222088,-0.7938 -0.4983164,-1.7331 -0.2089844,-2.5527 0.3852741,-0.8746 0.4306923,-1.8215 1.1289063,-2.3711 0.760971,-0.3781 0.7780174,-1.3412 0.7246094,-2.1602 -0.137382,-0.8369 0.1798169,-1.0203 0.8222648,-0.7187 -0.05779,1.0574 -0.136471,2.1228 -0.101562,3.1914 0.191083,0.7133 -1.8587981,1.3759 -1.2558591,1.8555 0.9293521,0.1644 1.7990101,1.3069 2.9023431,1.1289 1.206434,0.071 2.589995,-0.3827 3.5,-0.9258 -0.03553,-1.1489 0.168333,-2.3471 -0.412109,-3.3985 -0.518649,-1.4264 -0.734659,1.001 -1.853516,0.3106 -0.686734,-0.3867 -1.104652,-0.6728 -0.925781,-1.5469 -0.04448,-0.9927 0.102019,-2.0299 -0.103516,-2.9844 -0.152347,-1.0207 -1.792506,-0.9946 -2.6757805,-1.1328 -0.99826,0.4428 -0.4834648,-1.0776 -0.5292968,-0.9804 0.698842,-1.2142 1.3435223,-2.5838 2.1757813,-3.6524 0.459306,0.3439 1.18061,1.1954 1.902343,1.5313 0.689353,0.8356 2.046041,1.0485 2.763672,0.1875 0.693022,-0.5379 1.117333,-1.9043 1.431641,-2.1114 1.016265,-0.3304 0.603363,-1.8461 -0.332031,-1.9746 0.837391,-1.1146 -0.745831,-1.3723 -1.337891,-1.6465 -0.447821,0.07 -2.044117,-0.7848 -1.75,-0.8242 0.599062,-0.4018 -0.108376,-0.8386 0.101562,-1.6465 0.205224,-1.1155 1.591808,-1.0022 2.472657,-1.5449 1.475058,-0.8679 -1.063903,-2.4262 0.617187,-3.0898 0.101345,-0.8118 -0.571281,-0.8426 -0.720703,-1.3379 0.08615,-0.5934 -0.112507,-1.0661 -0.308594,-1.543 -0.87979,-1.3253 -1.257159,0.1712 -1.558593,1.0117 -0.362047,1.1584 -0.853314,2.5222 -1.736328,3.3106 -0.197982,0.916 -1.202798,2.0564 -1.75,0.9277 0.225607,-1.0505 0.126466,-1.6997 -0.925782,-1.914 -0.2818291,-0.4122 -0.2863098,-1.3068 -0.103515,-1.6895 0.549521,-0.6725 1.475205,-0.5621 1.955078,-1.2363 0.704791,-0.3046 0.746429,-1.8216 0,-1.8516 -0.655955,-0.4626 -1.455227,-1.5818 -2.3007812,-1.6074 z m 44.5156242,0 c -0.84555,0.026 -1.644831,1.143 -2.300781,1.6055 -0.74643,0.03 -0.7048,1.5489 0,1.8535 0.47987,0.6742 1.405558,0.5638 1.955078,1.2363 0.18279,0.3828 0.178315,1.2773 -0.103515,1.6895 -1.05225,0.2143 -1.151382,0.8635 -0.925782,1.914 -0.547199,1.1287 -1.55202,-0.012 -1.75,-0.9277 -0.883009,-0.7883 -1.374278,-2.1521 -1.736328,-3.3106 -0.30143,-0.8404 -0.678803,-2.339 -1.558593,-1.0136 -0.19609,0.4769 -0.394744,0.9514 -0.308594,1.5449 -0.14943,0.4952 -0.822043,0.526 -0.720703,1.3379 1.68109,0.6636 -0.857863,2.2218 0.617187,3.0898 0.88085,0.5426 2.267437,0.4275 2.472657,1.543 0.20994,0.8079 -0.497498,1.2466 0.101562,1.6484 0.29412,0.039 -1.30218,0.8947 -1.75,0.8242 -0.59206,0.2742 -2.175281,0.5319 -1.337891,1.6465 -0.9354,0.1284 -1.348301,1.6441 -0.332031,1.9746 0.31431,0.207 0.738621,1.5735 1.431641,2.1114 0.71763,0.8611 2.074322,0.6462 2.763672,-0.1895 0.72174,-0.3358 1.443033,-1.1853 1.902343,-1.5293 0.83125,1.0673 1.475968,2.4335 2.173828,3.6465 -0.0124,5e-4 0.439717,1.4152 -0.527343,0.9863 -0.88328,0.1381 -2.523441,0.112 -2.675781,1.1328 -0.20554,0.9545 -0.05906,1.9918 -0.103516,2.9844 0.17887,0.8741 -0.239041,1.1582 -0.925781,1.5449 -1.11885,0.6904 -1.334876,-1.7351 -1.853516,-0.3086 -0.58045,1.0513 -0.376579,2.2496 -0.412109,3.3985 0.91001,0.5432 2.29357,0.997 3.5,0.9258 1.10333,0.178 1.972993,-0.9644 2.902343,-1.1289 0.60294,-0.4796 -1.446939,-1.1423 -1.255859,-1.8555 0.0349,-1.0686 -0.04381,-2.134 -0.101562,-3.1914 0.642449,-0.3015 0.959645,-0.1182 0.822265,0.7187 -0.0534,0.819 -0.03637,1.782 0.724609,2.1602 0.69822,0.5496 0.743637,1.4965 1.128907,2.3711 0.28934,0.8196 0.01313,1.7589 -0.208985,2.5527 -0.47363,0.5411 -1.728971,0.5711 -1.644531,1.4199 -0.0252,0.6973 0.327501,1.2407 0.207031,1.9766 0.17511,1.0086 2.379159,1.3426 2.261719,-0.2363 0.799,-0.9187 0.944916,-2.2139 1.597656,-3.125 0.21616,-0.7626 0.820508,-1.4658 0.773438,-2.4434 -8.3e-4,-0.7003 10e-4,-1.4014 0,-2.1015 -0.0756,-1.0408 -0.548705,-2.0218 -0.515625,-3.0879 -0.11517,-0.3337 0.7052,1.4978 0.61914,2.0586 0.0131,0.8343 1.398448,2.5986 1.429688,0.7675 0.58748,-0.7629 1.375438,-1.3122 1.142578,-2.4121 l 0,-2.3711 c 0.2163,-0.5372 0.05186,-1.2266 0.103516,-1.832 3e-4,-1.6542 -5.2e-4,-3.3092 0,-4.9629 0.2751,-1.305 1.445268,-2.3663 1.236328,-3.7871 0.19306,-0.9545 -0.612414,-1.6084 -1.339844,-2.0801 -0.78398,-0.5064 -0.443252,0.6446 -0.513672,1.0899 -0.0257,0.7686 0.07754,1.5804 -0.103515,2.2871 0.0683,0.9443 -0.227772,1.7433 -0.513672,2.5937 -0.60533,0.357 -0.798123,0.7218 -0.720703,1.543 0.0131,1.005 -0.0543,2.0421 0.101562,2.9883 0.3299,0.7896 0.190749,1.7576 0.41211,2.5722 -0.10297,0.7521 0.458985,1.6289 0.103515,2.2657 -1.08596,0.6325 -1.137026,-0.8378 -1.441406,-1.545 -0.37177,-0.9618 -0.886098,-2.0813 -1.236328,-2.8828 -0.23995,-1.0175 -0.802915,-2.1609 -1.171875,-3.2988 -0.50084,-1.1194 -0.283291,-2.1794 -0.269532,-3.3281 0.0554,-0.7145 -0.154888,-1.5309 0.201172,-2.125 0.56679,-0.7532 0.640459,-1.7913 0.830078,-2.5723 0.0585,-0.6143 -0.170605,-1.1116 -0.103515,-1.7285 0.0837,-0.6946 -0.09187,-1.2605 -0.515625,-1.668 -0.33232,-0.9753 0.919019,-1.2323 0.412109,-2.1621 -0.17536,-0.9655 -0.580005,-2.1813 -0.103515,-3.0898 0.0854,-0.5127 0.630505,-0.9832 0.103515,-1.543 -0.90164,0.015 -2.011707,0.3314 -2.779297,-0.1562 -0.0567,-0.01 -0.113552,-0.012 -0.169922,-0.01 z m -34.789062,5.3906 0,17.9902 c -2.58e-4,6.9583 5.610158,12.5994 12.53125,12.5997 6.921092,-3e-4 12.531508,-5.6414 12.53125,-12.5997 l 0,-17.9902 z m 0.451172,29.3164 c -0.208661,0.01 -0.407173,0.047 -0.574219,0.1328 -1.155539,0.1091 -1.581889,1.7817 -2.796875,1.4883 -0.987127,-0.5902 -1.445097,1.2106 -0.501953,1.3965 0.424499,0.5354 0.836446,1.1268 1.421875,1.4863 -6.910654,-0.3381 -10.5917966,-1.6113 -10.5917966,-1.6113 0.422784,2.0062 0.635686,3.8614 0,5.0977 0,0 4.8923206,1.6914 13.9921876,1.6914 9.099865,0 19.218507,-1.4551 26.716797,-1.4551 7.498289,0 9.537109,1.4551 9.537109,1.4551 -0.39625,-1.4014 -0.68504,-2.8832 0,-5.0957 0,0 -1.982735,-1.411 -9.208985,-1.4532 0.0802,-0.1193 0.156736,-0.2432 0.228516,-0.3691 0.70833,-0.055 0.07881,-1.0423 -0.146484,-1.3789 -1.2358,1.1112 -1.954986,-0.8195 -3.003906,-1.1328 -0.973551,-0.5611 -3.5124,0.084 -2.47461,1.4336 0.51032,0.5925 0.149381,1.2936 -0.605469,0.7871 -1.1576,-0.3158 -2.510645,0.044 -3.197265,0.8867 -0.17027,-0.5479 -0.706386,-1.2793 -0.947266,-0.3066 -0.33132,0.7594 -0.997552,0.5852 -0.726562,-0.2051 -0.37341,-1.506 -3.194682,-0.4189 -1.675782,0.7461 -0.47109,0.556 -2.604018,0.1001 -1.392578,-0.8633 0.52541,-0.6741 -0.07177,-1.7199 -0.658203,-0.6563 -0.55374,0.4685 -1.03993,2.9592 -1.78125,1.4649 -0.30706,-0.6458 -1.033846,-2.1765 -1.722656,-1.75 0.148388,0.8245 1.202201,2.3388 -0.441406,1.9863 -0.738047,0.2156 -1.059649,-0.3081 -0.357422,-0.6816 0.224766,-1.5101 -2.643897,-1.1629 -2.091797,0.4179 -0.572765,0.4852 -0.690698,-1.6243 -1.509766,-0.5957 -0.326823,1.0968 -0.902675,-0.8345 -1.808594,-0.5351 -0.685507,-0.2922 -2.730761,0.8707 -2.298828,-0.4649 1.199917,-0.9147 -0.25604,-1.9466 -1.382812,-1.916 z m 9.271484,2.8047 -0.0039,0.021 z m 5.615235,0 0.002,0.021 z" + id="rect4714" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccscccscccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccssccccccccccccccccccccccccccccc" /> + <path + sodipodi:nodetypes="cssccsscc" + inkscape:connector-curvature="0" + d="m 616.06331,758.91288 c 0,0 -19.79899,-14.14213 -92.63099,-14.14213 -72.83199,0 -171.11984,14.14213 -259.50818,14.14213 -88.38835,0 -135.89297,-16.43799 -135.89297,-16.43799 6.17451,-12.00861 4.10656,-30.01173 0,-49.49747 0,0 47.50462,16.43799 135.89297,16.43799 88.38834,0 186.67619,-14.14213 259.50818,-14.14213 72.832,0 92.63099,14.14213 92.63099,14.14213 -6.65388,21.48957 -3.84887,35.88497 0,49.49747 z" + style="fill:none;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + id="path4771" /> + </g> +</svg> diff --git a/resources/mmv/ui/img/restrict-ita-mibac.svg b/resources/mmv/ui/img/restrict-ita-mibac.svg new file mode 100644 index 0000000..346fa8e --- /dev/null +++ b/resources/mmv/ui/img/restrict-ita-mibac.svg @@ -0,0 +1,57 @@ +<?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" + version="1.0" + width="64" + height="64" + id="svg2" + inkscape:version="0.91 r13725" + sodipodi:docname="restrict-ita-mibac.svg"> + <metadata + id="metadata73"> + <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> + <defs + id="defs71" /> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1920" + inkscape:window-height="1018" + id="namedview69" + showgrid="false" + inkscape:zoom="9.4347534" + inkscape:cx="43.442342" + inkscape:cy="34.560364" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:window-maximized="1" + inkscape:current-layer="svg2" /> + <path + style="fill:#333333;fill-opacity:1;stroke:none" + d="M 30.33299,0 C 28.294743,0.77738 25.321599,0.9004 24.037285,1.93166 21.898471,0.84475 22.129135,3.129 21.940636,3.44043 19.106618,2.34435 22.252983,7.13493 19.639984,4.96937 18.177272,6.45269 16.864213,2.19847 16.681715,5.46998 16.346417,7.04646 15.131721,8.37625 14.270942,6.70723 13.01316,6.23774 12.977395,2.83878 11.857415,5.62868 11.626972,9.17654 5.3050955,6.20299 6.1586535,9.7352 c 2.332118,1.40948 -0.49398,3.27524 -1.086005,3.7299 2.747353,1.52476 -0.642442,5.36227 3.002106,5.75702 2.6844955,-0.27629 0.143887,1.43287 1.237631,2.36023 2.9799485,-0.14498 4.1196715,-5.81801 7.5486175,-3.48886 2.196461,1.38082 5.188827,2.53787 5.098097,5.50694 0.895984,1.31458 0.16915,3.45563 1.842443,3.93619 1.111934,0.68165 1.669854,2.42501 1.941423,2.70743 3.366687,0.7911 4.577096,4.80925 7.551606,6.40186 2.059851,0.69042 5.108667,0.29152 5.566826,3.30929 1.844943,-0.87595 0.919863,2.1471 2.693483,0.88743 1.86561,0.92307 1.10688,4.23801 4.08827,3.78851 1.29707,1.36244 3.2804,5.75678 2.27585,7.50715 -1.34514,0.62292 -0.87214,2.93901 -2.03059,3.69753 1.40818,2.93227 4.08123,-1.39001 4.45945,-3.1201 0.55972,-2.33498 4.25919,-1.66386 1.98572,-4.6071 -1.22356,-1.33542 -3.35928,-1.7338 -1.79378,-3.90393 0.45336,-2.18385 2.617231,-2.79764 3.99337,-1.45476 2.02181,-0.4713 3.39102,5.54032 4.39418,1.73824 -0.418899,-3.43937 -4.41865,-4.72681 -6.968639,-6.33544 -1.780911,-0.73431 -6.32243,-2.14992 -3.64599,-4.19652 -0.83844,-2.14676 -4.68654,0.46459 -6.29741,-1.89497 -2.54663,-1.74818 -4.229757,-4.36464 -4.698036,-7.4267 -1.010032,-3.5736 -6.77019,-3.74223 -6.716174,-7.99128 -1.054807,-1.63046 2.21114,-1.95761 0.340697,-3.49724 -0.954372,-1.05087 0.7201,-3.76528 0.65442,-2.35623 C 34.029309,10.20103 34.791,8.06914 37.211076,9.30976 38.610263,11.03319 36.589666,7.99945 36.760182,8.04612 35.467784,6.89239 37.716435,6.10465 35.935337,5.80866 35.903457,4.62997 38.188207,3.55765 35.741935,3.57463 33.865212,3.63743 29.102982,2.60256 30.388762,0.21534 L 30.332992,0 l 0,0 z M 16.640604,37.15711 c -0.971611,1.76781 -3.475365,2.71855 -4.839597,2.58233 0.01559,1.88731 2.13754,3.6101 1.248494,5.36889 0.696345,1.78845 -1.469838,6.90741 2.068513,5.86663 0.590399,-2.5766 3.660284,-0.0595 3.509415,-2.97455 -0.595325,-2.89893 1.494424,-6.42313 -0.451482,-8.81669 0.512003,-1.08598 -1.025465,-1.39514 -1.535343,-2.02661 z m 2.325084,2.01284 c -1.444108,-0.18929 -0.41583,0.6422 0,0 z m 26.567914,15.47969 c -2.469971,1.01572 -5.20801,1.69685 -7.85995,1.78536 -1.73761,-0.47444 -2.624842,-1.48809 -4.232709,-0.35138 -2.766626,-1.67447 -2.330804,3.9904 0.587687,3.13988 2.893381,1.7203 6.007092,3.48792 8.960202,4.7765 2.75677,-1.69845 -1.013361,-5.46621 1.98724,-7.52361 0.25273,-0.43081 1.38338,-1.42356 0.55753,-1.82675 z" + id="path1906" + inkscape:connector-curvature="0" /> +</svg> diff --git a/resources/mmv/ui/img/restrict-nazi.svg b/resources/mmv/ui/img/restrict-nazi.svg new file mode 100644 index 0000000..7d5825a --- /dev/null +++ b/resources/mmv/ui/img/restrict-nazi.svg @@ -0,0 +1,62 @@ +<?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" + version="1.1" + width="64" + height="64" + viewBox="0 0 64 64" + id="svg2" + xml:space="preserve" + style="fill-rule:evenodd" + inkscape:version="0.91 r13725" + sodipodi:docname="restrict-nazi.svg"><sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="944" + inkscape:window-height="1002" + id="namedview98" + showgrid="false" + inkscape:zoom="4" + inkscape:cx="26.314029" + inkscape:cy="-6.7433453" + inkscape:window-x="960" + inkscape:window-y="0" + inkscape:window-maximized="0" + inkscape:current-layer="svg2" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" + showguides="false" + inkscape:snap-bbox="true" + inkscape:bbox-nodes="true" + inkscape:snap-bbox-midpoints="true" + inkscape:object-nodes="true" + inkscape:guide-bbox="true"><sodipodi:guide + position="6.39882,4.7980604" + orientation="0,1" + id="guide4315" /><sodipodi:guide + position="5.20899,-30.12705" + orientation="0,1" + id="guide4347" /></sodipodi:namedview><defs + id="defs147" /><metadata + id="metadata4245"><rdf:RDF><cc:Work + rdf:about=""><dc:title /><dc:format>image/svg+xml</dc:format><dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><path + style="fill:#333333;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + d="M 32.007812 0 L 12.804688 19.195312 L 19.203125 25.59375 L 38.40625 6.3984375 L 32.007812 0 z M 44.804688 12.796875 L 38.40625 19.195312 L 57.601562 38.398438 L 64 32 L 44.804688 12.796875 z M 31.992188 19.5 C 31.098706 19.5 30.375713 19.778054 29.820312 20.332031 C 29.264913 20.886047 28.984375 21.619786 28.984375 22.527344 C 28.984375 23.529243 29.268417 25.181942 29.835938 27.492188 L 30.78125 31.351562 C 31.25213 33.261059 31.524815 34.880883 31.609375 36.224609 L 32.40625 36.224609 C 32.56321 34.338659 32.810358 32.718835 33.148438 31.351562 L 34.109375 27.492188 C 34.713055 25.040508 35.015625 23.370414 35.015625 22.474609 C 35.015625 21.614142 34.727997 20.907493 34.148438 20.353516 C 33.580956 19.787747 32.861548 19.5 31.992188 19.5 z M 6.3984375 25.601562 L 0 32 L 19.203125 51.203125 L 25.59375 44.804688 L 6.3984375 25.601562 z M 44.804688 38.398438 L 25.601562 57.601562 L 31.992188 64 L 51.203125 44.796875 L 44.804688 38.398438 z M 32.03125 38.757812 C 31.21021 38.757812 30.512792 39.037747 29.945312 39.603516 C 29.377834 40.169286 29.09375 40.850914 29.09375 41.640625 C 29.09375 42.430336 29.377833 43.102161 29.945312 43.667969 C 30.524873 44.221946 31.22225 44.5 32.03125 44.5 C 32.84021 44.5 33.52627 44.221946 34.09375 43.667969 C 34.67331 43.102161 34.960938 42.430336 34.960938 41.640625 C 34.960938 40.839122 34.67331 40.157494 34.09375 39.603516 C 33.52627 39.037747 32.84021 38.757812 32.03125 38.757812 z " + id="path4145" /></svg> \ No newline at end of file diff --git a/resources/mmv/ui/img/restrict-personality.svg b/resources/mmv/ui/img/restrict-personality.svg new file mode 100644 index 0000000..a379fe1 --- /dev/null +++ b/resources/mmv/ui/img/restrict-personality.svg @@ -0,0 +1,67 @@ +<?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="64" + height="64" + viewBox="0 0 64.000001 64.000001" + id="svg4162" + version="1.1" + inkscape:version="0.91 r13725" + sodipodi:docname="restrict-personality.svg"> + <defs + id="defs4164" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="7.9195958" + inkscape:cx="-4.874333" + inkscape:cy="13.406729" + inkscape:document-units="px" + inkscape:current-layer="layer1" + showgrid="false" + units="px" + showguides="true" + inkscape:guide-bbox="true" + inkscape:object-nodes="true" + inkscape:window-width="1920" + inkscape:window-height="1018" + inkscape:window-x="-8" + inkscape:window-y="-8" + inkscape:window-maximized="1" /> + <metadata + id="metadata4167"> + <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,-988.36216)"> + <path + style="fill:#333333;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 32,988.36216 c -9.171152,-3e-5 -16.605834,7.43469 -16.605752,16.60584 -5e-6,9.1711 7.434655,16.6057 16.605752,16.6057 9.171098,0 16.605758,-7.4346 16.605753,-16.6057 C 48.605835,995.79685 41.171152,988.36213 32,988.36216 Z m -16.173155,28.60154 c -8.535283,8.2313 -11.3639665,20.3734 -11.3639686,35.3985 l 55.0742476,0 c -2e-6,-15.0251 -2.828687,-27.1672 -11.363968,-35.3985 -3.806081,4.7443 -9.639673,7.7985 -16.173156,7.7985 -6.533482,0 -12.367074,-3.0542 -16.173155,-7.7985 z m 13.840156,10.0798 4.663859,0 3.420485,18.6114 -5.753485,4.7754 -5.749205,-4.7754 z" + id="path4710" + inkscape:connector-curvature="0" + sodipodi:nodetypes="sssssccccsccccccc" /> + </g> +</svg> diff --git a/resources/mmv/ui/mmv.ui.metadataPanel.js b/resources/mmv/ui/mmv.ui.metadataPanel.js index 9cd10cd..fc8d001 100644 --- a/resources/mmv/ui/mmv.ui.metadataPanel.js +++ b/resources/mmv/ui/mmv.ui.metadataPanel.js @@ -49,6 +49,13 @@ oo.inheritClass( MetadataPanel, mw.mmv.ui.Element ); MPP = MetadataPanel.prototype; + /** + * Maximum number of restriction icons before default icon is used + * @property MAX_RESTRICT + * @static + */ + MetadataPanel.MAX_RESTRICT = 4; + /** * FIXME this should be in the jquery.fullscreen plugin. */ @@ -326,18 +333,8 @@ } ); this.$restrictions = $( '<span>' ) + .addClass( 'mw-mmv-restrictions' ) .appendTo( this.$licenseLi ); - - this.$restrictionTrademarked = $( '<span>' ) - .addClass( 'mw-mmv-label mw-mmv-restriction-label' ) - .html( '™' ) // trademark sign - .prop( 'title', mw.message( 'multimediaviewer-restriction-trademarked' ).text() ) - .tipsy( { - delay: mw.config.get( 'wgMultimediaViewer' ).tooltipDelay, - gravity: this.correctEW( 'se' ) - } ) - .appendTo( this.$restrictions ) - .hide(); this.$permissionLink = $( '<span>' ) .addClass( 'mw-mmv-permission-link mw-mmv-label' ) @@ -657,12 +654,58 @@ * @param {string[]} restrictions Array of restrictions */ MPP.setRestrictions = function ( restrictions ) { - if ( restrictions.indexOf( 'trademarked' ) !== -1 ) { - this.$restrictionTrademarked.show(); + var panel = this; // Access this inside $.each() + var restrictionsSet = {}; + var showDefault = false; + var validRestrictions = 0; + $.each( restrictions, function( index, value ) { + if ( !mw.message( 'multimediaviewer-restriction-' + value ).exists() || value === 'default' || index + 1 > MetadataPanel.MAX_RESTRICT ) { + showDefault = true; // If the restriction isn't defined or there are more than MAX_RESTRICT of them, show a generic symbol at the end + return; + } + if( restrictionsSet[value] ) { + return; // Only show one of each symbol + } else { + restrictionsSet[value] = true; + } + + panel.$restrictions.append( panel.createRestriction( value ) ); + validRestrictions++; // See how many defined restrictions are added so we know which default i18n msg to use + } ); + + if ( showDefault ) { + if ( validRestrictions ) { + panel.$restrictions.append( panel.createRestriction( 'default-and-others' ) ); + } else { + panel.$restrictions.append( panel.createRestriction( 'default' ) ); + } } }; /** + * Helper function that generates restriction labels + * @param {string} type Restriction type + * @return {jQuery} jQuery object of label + */ + MPP.createRestriction = function ( type ) { + var $label = $( '<span>' ) + .addClass( 'mw-mmv-label mw-mmv-restriction-label' ) + .prop( 'title', mw.message( 'multimediaviewer-restriction-' + type ).text() ) + .tipsy( { + delay: mw.config.get( 'wgMultimediaViewer' ).tooltipDelay, + gravity: this.correctEW( 'se' ) + } ); + + $( '<span>' ) + .addClass( 'mw-mmv-restriction-label-inner mw-mmv-restriction-' + + ( type === 'default-and-others' ? 'default' : type ) ) + .text( mw.message( 'multimediaviewer-restriction-' + type ).text() ) + .appendTo( $label ); + + return $label; + }; + + /** * Sets location data in the interface. * @param {mw.mmv.model.Image} imageData */ diff --git a/resources/mmv/ui/mmv.ui.metadataPanel.less b/resources/mmv/ui/mmv.ui.metadataPanel.less index 9ef6db2..4fe7834 100644 --- a/resources/mmv/ui/mmv.ui.metadataPanel.less +++ b/resources/mmv/ui/mmv.ui.metadataPanel.less @@ -261,6 +261,7 @@ .mw-mmv-label { color: #333333; margin-left: 6px; + margin-top: 1px; .box-round(3px); padding: 2px 5px; background-color: #dddddd; @@ -292,11 +293,100 @@ } +.mw-mmv-restrictions { + display: inline-block; + line-height: 14px; +} + .mw-mmv-restriction-label { &, &:hover { background-color: #ffcc66; } cursor: default; + display: inline-block; + height: 16px; +} + +.mw-mmv-restriction-label-inner { + display: inline-block; + width: 14px; + height: 14px; + text-indent: -9999px; + text-align: left; + background-size: contain; + &:after { + float: right; + text-indent: 0; + } +} + +.mw-mmv-restriction-2257 { + /* @embed */ + background-image: url(img/restrict-2257.svg); +} + +.mw-mmv-restriction-aus-reserve { + /* @embed */ + background-image: url(img/restrict-aus-reserve.svg); +} + +.mw-mmv-restriction-communist { + /* @embed */ + background-image: url(img/restrict-communist.svg); +} + +.mw-mmv-restriction-costume { + /* @embed */ + background-image: url(img/restrict-costume.svg); +} + +.mw-mmv-restriction-currency { + /* @embed */ + background-image: url(img/restrict-currency.svg); +} + +.mw-mmv-restriction-design { + /* @embed */ + background-image: url(img/restrict-design.svg); +} + +.mw-mmv-restriction-fan-art { + /* @embed */ + background-image: url(img/restrict-fan-art.svg); +} + +.mw-mmv-restriction-ihl { + /* @embed */ + background-image: url(img/restrict-ihl.svg); +} + +.mw-mmv-restriction-insignia { + /* @embed */ + background-image: url(img/restrict-insignia.svg); +} + +.mw-mmv-restriction-ita-mibac { + /* @embed */ + background-image: url(img/restrict-ita-mibac.svg); +} + +.mw-mmv-restriction-nazi { + /* @embed */ + background-image: url(img/restrict-nazi.svg); +} + +.mw-mmv-restriction-personality { + /* @embed */ + background-image: url(img/restrict-personality.svg); +} + +.mw-mmv-restriction-trademarked:after { + content: '\002122'; +} + +.mw-mmv-restriction-default { + /* @embed */ + background-image: url(img/restrict-default.svg); } .mw-mmv-permission-link { diff --git a/tests/qunit/mmv/ui/mmv.ui.metadataPanel.test.js b/tests/qunit/mmv/ui/mmv.ui.metadataPanel.test.js index 0760bac..59b7a9f 100644 --- a/tests/qunit/mmv/ui/mmv.ui.metadataPanel.test.js +++ b/tests/qunit/mmv/ui/mmv.ui.metadataPanel.test.js @@ -97,7 +97,7 @@ ); } ); - QUnit.test( 'Setting image information works as expected', 18, function ( assert ) { + QUnit.test( 'Setting image information works as expected', 19, function ( assert ) { var creditPopupText, gender, $qf = $( '#qunit-fixture' ), @@ -144,6 +144,7 @@ 'http://creativecommons.org/licenses/by-sa/2.0/' ); gender = 'female'; imageData.lastUploader = 'Ursula'; + imageData.restrictions = [ 'trademarked', 'default', 'insignia' ]; panel.setImageInfo( image, imageData, repoData, gender ); creditPopupText = panel.creditField.$element.attr( 'original-title' ); @@ -159,6 +160,7 @@ assert.strictEqual( panel.$license.text(), 'CC BY 2.0', 'License is correctly set' ); assert.ok( panel.$license.prop( 'target' ), 'License information opens in new window' ); assert.ok( panel.$username.text().indexOf( imageData.lastUploader ) > 0, 'Correct username is displayed' ); + assert.ok( panel.$restrictions.children().last().children().hasClass( 'mw-mmv-restriction-default' ), 'Default restriction is correctly displayed last' ); imageData.creationDateTime = undefined; panel.setImageInfo( image, imageData, repoData, gender ); -- To view, visit https://gerrit.wikimedia.org/r/219534 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I907396c59752511448145a4ac5d29096166f841f Gerrit-PatchSet: 9 Gerrit-Project: mediawiki/extensions/MultimediaViewer Gerrit-Branch: master Gerrit-Owner: Sn1per <geof...@gmail.com> Gerrit-Reviewer: GergÅ‘ Tisza <gti...@wikimedia.org> Gerrit-Reviewer: MarkTraceur <mtrac...@member.fsf.org> Gerrit-Reviewer: Matanya <mata...@foss.co.il> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits