]> source.dussan.org Git - nextcloud-server.git/commitdiff
Colorize checkboxes depending on theming color
authorJulius Haertl <jus@bitgrid.net>
Tue, 12 Jul 2016 19:35:43 +0000 (21:35 +0200)
committerJulius Haertl <jus@bitgrid.net>
Wed, 27 Jul 2016 17:45:57 +0000 (19:45 +0200)
apps/theming/lib/controller/themingcontroller.php
core/img/actions/checkmark-white.svg

index 3e5d6f3e0d1c05a09a0a7097984c5eab1192550e..eb377f27ff868c57d4cbb7dfdd928903881663e6 100644 (file)
@@ -219,6 +219,14 @@ class ThemingController extends Controller {
                                '#body-user #header,#body-settings #header,#body-public #header,#body-login,.searchbox input[type="search"]:focus,.searchbox input[type="search"]:active,.searchbox input[type="search"]:valid {background-color: %s}',
                                $color
                        );
+                       $responseCss .= sprintf('
+                               input[type="checkbox"].checkbox:checked + label:before {
+                                       background-image:url(/core/img/actions/checkmark-white.svg);
+                                       background-color: %s; background-position: center center; background-size:contain;
+                                       width:12px; height:12px; padding:0; margin:1px 6px 7px 2px;
+                       }',
+                               $color
+                       );
                }
                $logo = $this->config->getAppValue($this->appName, 'logoMime');
                if($logo !== '') {
index 964624a9ce41889884f4c52fcddce2c9b940396f..b294cb0294158d4fb8f8b4005f322202d2cb7af1 100644 (file)
@@ -1,4 +1 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="16px" viewBox="-0.5 -0.5 16 16" width="16px" version="1.1" y="0px" x="0px" xmlns:cc="http://creativecommons.org/ns#" enable-background="new -0.5 -0.5 16 16" overflow="visible" xmlns:dc="http://purl.org/dc/elements/1.1/">
-<path fill="#fff" transform="translate(-.5 -.5)" d="m12.438 3.6875c-0.363 0-0.726 0.1314-1 0.4063l-4.5005 4.5-1.9687-2c-0.5498-0.5484-1.4489-0.5498-2 0l-0.5 0.5c-0.5512 0.5496-0.5512 1.4502 0 2l2.9687 2.9682c0.0063 0.007-0.0065 0.025 0 0.032l0.5 0.5c0.5497 0.55 1.4503 0.55 2 0l0.5-0.5 0.1875-0.219 5.313-5.2812c0.549-0.5498 0.549-1.4503 0-2l-0.5-0.5c-0.275-0.2749-0.638-0.4063-1-0.4063z"/>
-</svg>
+<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="-0.5 -0.5 16 16" width="16" overflow="visible"><path d="M6.089 12.5l-4.95-4.95 1.414-1.414L6.09 9.671l6.345-6.383 1.433 1.434z" fill="#fff"/></svg>
\ No newline at end of file