Jeff Zaroyko : Increase readability by using slightly softer colours

Chris Morgan cmorgan at winehq.org
Tue Feb 19 21:26:24 CST 2008


Module: appdb
Branch: master
Commit: 155f631a4be7e042d643f064877a3473c80987cd
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=155f631a4be7e042d643f064877a3473c80987cd

Author: Jeff Zaroyko <jeffzaroyko at gmail.com>
Date:   Wed Feb 20 13:57:35 2008 +1100

Increase readability by using slightly softer colours

---

 application.css  |    3 +++
 include/note.php |    8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/application.css b/application.css
index 0746379..4425bf0 100644
--- a/application.css
+++ b/application.css
@@ -54,6 +54,9 @@ tr.gold             { background-color: #fff600; }
 tr.silver           { background-color: silver;  }
 tr.bronze           { background-color: #fcba0a; }
 tr.garbage          { background-color: #999966; }
+tr.warning          { background-color: #ff3333; } /* novascotia salmon */
+tr.howto            { background-color: green;   }
+tr.defaultnote      { background-color: #0066CC; } /* mid-light blue */
 
 /* classes for the version info pane */
 /* version info pane is the right hand pane at the top of the version page */
diff --git a/include/note.php b/include/note.php
index 0e640b9..4dac990 100644
--- a/include/note.php
+++ b/include/note.php
@@ -201,12 +201,12 @@ class Note {
         switch($this->sTitle)
         {
         case 'WARNING':
-            $sColor = 'red';
+            $sClass = 'warning';
             $sTitle = 'Warning';
             break;
 
         case 'HOWTO':
-            $sColor = 'green';
+            $sClass = 'howto';
             $sTitle = 'HOWTO';
             break;
 
@@ -216,7 +216,7 @@ class Note {
             else 
                 $sTitle = 'Note';
             
-            $sColor = 'blue';
+            $sClass = 'defaultnote';
         }
 
         $oVersion = new version($this->iVersionId);
@@ -224,7 +224,7 @@ class Note {
         $shOutput = html_frame_start("","98%",'',0);
 
         $shOutput .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\">\n";
-        $shOutput .= "<tr bgcolor=\"".$sColor."\" align=\"center\" valign=\"top\"><td><b>".$sTitle."</b></td></tr>\n";
+        $shOutput .= "<tr class=\"".$sClass."\" align=\"center\" valign=\"top\"><td><b>".$sTitle."</b></td></tr>\n";
         $shOutput .= "<tr><td class=\"note\">\n";
         $shOutput .= $this->shDescription;
         $shOutput .= "</td></tr>\n";




More information about the wine-cvs mailing list