aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-05-28 21:12:31 +0100
committerThomas Willingham <founder@kakste.com>2013-05-28 21:12:31 +0100
commit543e4903b285c7211dc95cb35d55dbcdd839e9da (patch)
treecaeb789a4fa0b3143e190ff6644a4635f4e49f9e /view/theme/redbasic/php
parent7c2aa706f297b0ab89e40dba23829bc8d34f4874 (diff)
downloadvolse-hubzilla-543e4903b285c7211dc95cb35d55dbcdd839e9da.tar.gz
volse-hubzilla-543e4903b285c7211dc95cb35d55dbcdd839e9da.tar.bz2
volse-hubzilla-543e4903b285c7211dc95cb35d55dbcdd839e9da.zip
Use misanthrozot as dark scheme, fix some PCSS bugs
Diffstat (limited to 'view/theme/redbasic/php')
-rw-r--r--view/theme/redbasic/php/config.php1
-rw-r--r--view/theme/redbasic/php/style.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/view/theme/redbasic/php/config.php b/view/theme/redbasic/php/config.php
index 21399945c..9b1cf1fbd 100644
--- a/view/theme/redbasic/php/config.php
+++ b/view/theme/redbasic/php/config.php
@@ -96,6 +96,7 @@ function redbasic_form(&$a, $font_size, $line_height, $colour, $shadow, $navcolo
$colour_schemes = array(
'redbasic' => 'redbasic',
'fancyred' => 'fancyred',
+ 'dark' => 'dark',
);
$shadows = array(
'true' => 'Yes',
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index e011d6185..e5b128546 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -41,7 +41,9 @@
// In non-expert mode, we just let them choose font size, line height, and a colour scheme. A colour scheme is just a pre-defined set of the above variables.
// But only apply these settings in non-expert mode to prevent confusion when turning expert mode on and off.
if(! feature_enabled(local_user(),'expert')) {
- if ($colour_scheme === 'fancyred') {$shadows = true; $navcolour = 'black'; $shadows = true; $displaystyle = 'fancy'; $linkcolour = 'f00'; $shiny = "opaque";}
+ if ($colour_scheme === 'fancyred') {$shadows = true; $navcolour = 'black'; $displaystyle = 'fancy'; $linkcolour = 'f00'; $shiny = "opaque";}
+ // Dark themes are very different - we need to do some of these from scratch, so don't bother setting vars for anything else
+ if ($colour_scheme === 'dark') {$colour = 'dark'; $navcolour = 'black';}
}
// This is probably the easiest place to apply global settings. Don't bother with site line height and such. Instead, check pconfig for global user settings.