summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-07-12 21:35:43 +0200
committerJulius Haertl <jus@bitgrid.net>2016-07-27 19:45:57 +0200
commit9ebe0c8d640a555c5d82da3832ea8da0dd22ea67 (patch)
tree99d3e82cf25cffaaa022173573cb1de51dbb0951 /apps
parenta61736c0dda39c197072d1b3fa63ec356d62cacb (diff)
downloadnextcloud-server-9ebe0c8d640a555c5d82da3832ea8da0dd22ea67.tar.gz
nextcloud-server-9ebe0c8d640a555c5d82da3832ea8da0dd22ea67.zip
Colorize checkboxes depending on theming color
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/lib/controller/themingcontroller.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/theming/lib/controller/themingcontroller.php b/apps/theming/lib/controller/themingcontroller.php
index 3e5d6f3e0d1..eb377f27ff8 100644
--- a/apps/theming/lib/controller/themingcontroller.php
+++ b/apps/theming/lib/controller/themingcontroller.php
@@ -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 !== '') {