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 --- themes/example/defaults.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'themes') diff --git a/themes/example/defaults.php b/themes/example/defaults.php index 3d0ae9c1c74..6e0364a3dca 100644 --- a/themes/example/defaults.php +++ b/themes/example/defaults.php @@ -151,4 +151,14 @@ class OC_Theme { return '#745bca'; } + /** + * Returns variables to overload defaults from core/css/variables.scss + * @return array + */ + public function getScssVariables() { + return [ + 'color-primary' => '#745bca' + ]; + } + } -- cgit v1.2.3