From 9ebe0c8d640a555c5d82da3832ea8da0dd22ea67 Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Tue, 12 Jul 2016 21:35:43 +0200 Subject: Colorize checkboxes depending on theming color --- apps/theming/lib/controller/themingcontroller.php | 8 ++++++++ core/img/actions/checkmark-white.svg | 5 +---- 2 files changed, 9 insertions(+), 4 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 !== '') { diff --git a/core/img/actions/checkmark-white.svg b/core/img/actions/checkmark-white.svg index 964624a9ce4..b294cb02941 100644 --- a/core/img/actions/checkmark-white.svg +++ b/core/img/actions/checkmark-white.svg @@ -1,4 +1 @@ - - - - + \ No newline at end of file -- cgit v1.2.3