summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-08-14 12:54:06 +0200
committerJulius Haertl <jus@bitgrid.net>2016-11-18 10:23:23 +0100
commitd1fcfe8e7dd7f6acf06e6060cbedbca53a6eca0a (patch)
treeca0004cbcb2df63aaac1316e4c11ea8847804331 /apps/theming/lib
parentc7adcb85aefc384a59c6081015537a603a675c3e (diff)
downloadnextcloud-server-d1fcfe8e7dd7f6acf06e6060cbedbca53a6eca0a.tar.gz
nextcloud-server-d1fcfe8e7dd7f6acf06e6060cbedbca53a6eca0a.zip
Theming: Add colorized icon css from icons.css
Signed-off-by: Julius Haertl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/Controller/ThemingController.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php
index 09b4a14f2b0..7ba4feb62dd 100644
--- a/apps/theming/lib/Controller/ThemingController.php
+++ b/apps/theming/lib/Controller/ThemingController.php
@@ -403,6 +403,15 @@ class ThemingController extends Controller {
$responseCss .= '.nc-theming-contrast {color: #ffffff}' . "\n";
}
+ if($logo !== '' or $color !== '') {
+ $responseCss .= '.icon-file,.icon-filetype-text {' .
+ 'background-image: url(\'./img/core/filetypes/text.svg?v='.$cacheBusterValue.'\');' . "}\n" .
+ '.icon-folder, .icon-filetype-folder ' .
+ 'background-image: url(\'./img/core/filetypes/folder.svg?v='.$cacheBusterValue.'\');' . "}\n" .
+ '.icon-filetype-folder-drag-accept {' .
+ 'background-image: url(\'./img/core/filetypes/folder-drag-accept.svg?v='.$cacheBusterValue.'\')!important;' . "}\n";
+ }
+
$response = new DataDownloadResponse($responseCss, 'style', 'text/css');
$response->addHeader('Expires', date(\DateTime::RFC2822, $this->timeFactory->getTime()));
$response->addHeader('Pragma', 'cache');