From 68a63ad3f33c683d726219a508bb31de7b9ab1d0 Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Fri, 17 Feb 2017 16:42:07 +0100 Subject: Implement scss variable injection by OC_Defaults MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Haertl Add Scss variables to example theme and theming app Signed-off-by: Julius Haertl Use SCSSCacher to build theming css Signed-off-by: Julius Härtl Update theming.scss Signed-off-by: Julius Härtl Code cleanup Signed-off-by: Julius Härtl Fix tests Signed-off-by: Julius Härtl Inject SCSSCacher for easier testing Signed-off-by: Julius Härtl Fix typehint Signed-off-by: Lukas Reschke Generate absolute URLs Signed-off-by: Lukas Reschke Fix tests to always use absolute urls for theming images Signed-off-by: Julius Härtl MailheaderColor -> ColorPrimary Signed-off-by: Roeland Jago Douma --- lib/private/legacy/defaults.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/private/legacy/defaults.php') 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; } -- cgit v1.2.3