From 5f5f90e58a835a8053bcf3d87d7e626b430ae39b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 21 Feb 2013 16:20:40 +0000 Subject: Redbasic - implement "dark" colours. Intended to make life easier for a theme developer. --- view/theme/redbasic/php/style.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'view/theme/redbasic/php') diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index f9e70d4ff..1423e512a 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -53,10 +53,11 @@ } echo "\r\n"; - //if($colour != "light" { grab the contents of file $colour which doesn't exist yet, and echo it when it does} - //see the displaystyle bit to see how this works. - //Then, grab the "Light" PCSS from KakSte Friendica theme, flip the colours, and the job is 90% done - //$colour_scheme (not yet implemented) should be used for idiot mode +// use $colour_scheme (not yet implemented) for idiot mode. + if($colour === "dark") {if (file_exists('view/theme/' . current_theme() . '/css/dark.css')) { + $dark = (file_get_contents('view/theme/' . current_theme() . '/css/dark.css')); + echo "$dark";} + } // Enforce sane limits for expert mode - otherwise we'll end up with "experts" who think font size is a percentage. -- cgit v1.2.3