]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update design settings CSS output
authorZach Copley <zach@status.net>
Mon, 6 Jun 2011 20:18:56 +0000 (13:18 -0700)
committerZach Copley <zach@status.net>
Mon, 6 Jun 2011 20:38:28 +0000 (13:38 -0700)
classes/Design.php
js/userdesign.go.js

index f4834c714e80038e928ab01c2067bf1f6e4c93e9..464e244b1a110d4ac1a75b7944bdd125eadceb1f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  * StatusNet - the distributed open-source microblogging tool
- * Copyright (C) 2009, StatusNet, Inc.
+ * Copyright (C) 2009-2011, StatusNet, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -66,14 +66,14 @@ class Design extends Memcached_DataObject
         $ccolor  = Design::toWebColor($this->contentcolor);
 
         if (!empty($ccolor)) {
-            $css .= '#content, #site_nav_local_views .current a { background-color: #';
+            $css .= '#content { background-color: #';
             $css .= $ccolor->hexValue() . '} '."\n";
         }
 
         $sbcolor = Design::toWebColor($this->sidebarcolor);
 
         if (!empty($sbcolor)) {
-            $css .= '#aside_primary { background-color: #'. $sbcolor->hexValue() . ' }' . "\n";
+            $css .= '#aside_primary_wrapper, #site_nav_local_views_wrapper { background-color: #'. $sbcolor->hexValue() . ' }' . "\n";
         }
 
         $tcolor  = Design::toWebColor($this->textcolor);
index eb4dece095efe77b302e8d61c4db3ac60f81c5dd..f6c696759dc1080ced6b3a34b346376c4ea150d2 100644 (file)
@@ -2,7 +2,7 @@
  *
  * @package   StatusNet
  * @author Sarven Capadisli <csarven@status.net>
- * @copyright 2009 StatusNet, Inc.
+ * @copyright 2009-2011 StatusNet, Inc.
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link      http://status.net/
  */
@@ -16,7 +16,7 @@ $(document).ready(function() {
                 $(E).val(rgb2hex($('#content').css('background-color')));
                 break;
             case 3:
-                $(E).val(rgb2hex($('#aside_primary').css('background-color')));
+                $(E).val(rgb2hex($('#aside_primary_wrapper, #site_nav_local_views_wrapper').css('background-color')));
                 break;
             case 4:
                 $(E).val(rgb2hex($('html body').css('color')));
@@ -45,10 +45,10 @@ $(document).ready(function() {
                 $('body').css({'background-color':C});
                 break;
             case 2:
-                $('#content, #site_nav_local_views .current a').css({'background-color':C});
+                $('#content').css({'background-color':C});
                 break;
             case 3:
-                $('#aside_primary').css({'background-color':C});
+                $('#aside_primary_wrapper, #site_nav_local_views_wrapper').css({'background-color':C});
                 break;
             case 4:
                 $('html body').css({'color':C});