summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2017-02-17 16:42:07 +0100
committerJoas Schilling <coding@schilljs.com>2017-04-25 11:39:45 +0200
commit68a63ad3f33c683d726219a508bb31de7b9ab1d0 (patch)
tree910932971b761689c8ca843860119a1df6e29573 /lib/private/legacy
parent133f3fdc9aec28383dba323d58569eddd160b0df (diff)
downloadnextcloud-server-68a63ad3f33c683d726219a508bb31de7b9ab1d0.tar.gz
nextcloud-server-68a63ad3f33c683d726219a508bb31de7b9ab1d0.zip
Implement scss variable injection by OC_Defaults
Signed-off-by: Julius Haertl <jus@bitgrid.net> Add Scss variables to example theme and theming app Signed-off-by: Julius Haertl <jus@bitgrid.net> Use SCSSCacher to build theming css Signed-off-by: Julius Härtl <jus@bitgrid.net> Update theming.scss Signed-off-by: Julius Härtl <jus@bitgrid.net> Code cleanup Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix tests Signed-off-by: Julius Härtl <jus@bitgrid.net> Inject SCSSCacher for easier testing Signed-off-by: Julius Härtl <jus@bitgrid.net> Fix typehint Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Generate absolute URLs Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Fix tests to always use absolute urls for theming images Signed-off-by: Julius Härtl <jus@bitgrid.net> MailheaderColor -> ColorPrimary Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/defaults.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/legacy/defaults.php b/lib/private/legacy/defaults.php
index 72e25e5e647..7835707b19d 100644
--- a/lib/private/legacy/defaults.php
+++ b/lib/private/legacy/defaults.php
@@ -290,6 +290,16 @@ class OC_Defaults {
return $this->defaultColorPrimary;
}
+ /**
+ * @return array scss variables to overwrite
+ */
+ public function getScssVariables() {
+ if($this->themeExist('getScssVariables')) {
+ return $this->theme->getScssVariables();
+ }
+ return [];
+ }
+
public function shouldReplaceIcons() {
return false;
}