aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/style.php
diff options
context:
space:
mode:
authorroot <root@rlyeh-military-affairs>2013-02-21 16:20:40 +0000
committerroot <root@rlyeh-military-affairs>2013-02-21 16:20:40 +0000
commit5f5f90e58a835a8053bcf3d87d7e626b430ae39b (patch)
treed63773dd084abaedccef441de3d2731967f49ef7 /view/theme/redbasic/php/style.php
parent3174116de0f00810a10aaf1b9a8468c93b05ab42 (diff)
downloadvolse-hubzilla-5f5f90e58a835a8053bcf3d87d7e626b430ae39b.tar.gz
volse-hubzilla-5f5f90e58a835a8053bcf3d87d7e626b430ae39b.tar.bz2
volse-hubzilla-5f5f90e58a835a8053bcf3d87d7e626b430ae39b.zip
Redbasic - implement "dark" colours. Intended to make life easier for a theme developer.
Diffstat (limited to 'view/theme/redbasic/php/style.php')
-rw-r--r--view/theme/redbasic/php/style.php9
1 files changed, 5 insertions, 4 deletions
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.