[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/areas/accessibility
From:       Olaf Schmidt <ojschmidt () kde ! org>
Date:       2006-07-26 17:13:53
Message-ID: 1153934033.238219.22812.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 566669 by ojschmidt:

Add colours from the KDE CIG palette

 M  +69 -0     oxygen.php  


--- trunk/www/areas/accessibility/oxygen.php #566668:566669
@@ -222,6 +222,54 @@
     "tool-tip"=>array ("red256"=>255, "green256"=>246, "blue256"=>200)
 );
 
+$cigcolors = array (
+    "black"=>array ("red256"=>0, "green256"=>0, "blue256"=>0),
+    "white"=>array ("red256"=>255, "green256"=>255, "blue256"=>255),
+    "CIG brown 1"=>array ("red256"=>82, "green256"=>34, "blue256"=>0),
+    "CIG brown 2"=>array ("red256"=>159, "green256"=>95, "blue256"=>0),
+    "CIG brown 3"=>array ("red256"=>217, "green256"=>174, "blue256"=>126),
+    "CIG brown 4"=>array ("red256"=>243, "green256"=>223, "blue256"=>198),
+    "CIG red 1"=>array ("red256"=>181, "green256"=>0, "blue256"=>47),
+    "CIG red 2"=>array ("red256"=>231, "green256"=>35, "blue256"=>0),
+    "CIG red 3"=>array ("red256"=>240, "green256"=>164, "blue256"=>185),
+    "CIG red 4"=>array ("red256"=>246, "green256"=>207, "blue256"=>221),
+    "CIG yellow 1"=>array ("red256"=>249, "green256"=>186, "blue256"=>7),
+    "CIG yellow 2"=>array ("red256"=>255, "green256"=>220, "blue256"=>0),
+    "CIG yellow 3"=>array ("red256"=>255, "green256"=>233, "blue256"=>68),
+    "CIG yellow 4"=>array ("red256"=>255, "green256"=>245, "blue256"=>146),
+    "CIG green 1"=>array ("red256"=>83, "green256"=>147, "blue256"=>22),
+    "CIG green 2"=>array ("red256"=>99, "green256"=>176, "blue256"=>31),
+    "CIG green 3"=>array ("red256"=>127, "green256"=>187, "blue256"=>86),
+    "CIG green 4"=>array ("red256"=>180, "green256"=>213, "blue256"=>151),
+    "CIG green 5"=>array ("red256"=>0, "green256"=>102, "blue256"=>47),
+    "CIG green 6"=>array ("red256"=>0, "green256"=>151, "blue256"=>84),
+    "CIG green 7"=>array ("red256"=>128, "green256"=>195, "blue256"=>155),
+    "CIG green 8"=>array ("red256"=>171, "green256"=>215, "blue256"=>188),
+    "CIG blue 1"=>array ("red256"=>0, "green256"=>65, "blue256"=>136),
+    "CIG blue 2"=>array ("red256"=>0, "green256"=>113, "blue256"=>188),
+    "CIG blue 3"=>array ("red256"=>0, "green256"=>148, "blue256"=>213),
+    "CIG blue 4"=>array ("red256"=>179, "green256"=>221, "blue256"=>245),
+    "CIG blue 5"=>array ("red256"=>27, "green256"=>45, "blue256"=>131),
+    "CIG blue 6"=>array ("red256"=>74, "green256"=>108, "blue256"=>179),
+    "CIG blue 7"=>array ("red256"=>95, "green256"=>143, "blue256"=>203),
+    "CIG blue 8"=>array ("red256"=>197, "green256"=>217, "blue256"=>240),
+    "CIG violet 1"=>array ("red256"=>85, "green256"=>18, "blue256"=>123),
+    "CIG violet 2"=>array ("red256"=>121, "green256"=>103, "blue256"=>171),
+    "CIG violet 3"=>array ("red256"=>164, "green256"=>158, "blue256"=>205),
+    "CIG violet 4"=>array ("red256"=>191, "green256"=>184, "blue256"=>216),
+    "CIG violet 5"=>array ("red256"=>123, "green256"=>12, "blue256"=>130),
+    "CIG violet 6"=>array ("red256"=>155, "green256"=>87, "blue256"=>159),
+    "CIG violet 7"=>array ("red256"=>186, "green256"=>144, "blue256"=>192),
+    "CIG violet 8"=>array ("red256"=>209, "green256"=>176, "blue256"=>210),
+    "CIG gray 1"=>array ("red256"=>0, "green256"=>0, "blue256"=>28),
+    "CIG gray 2"=>array ("red256"=>11, "green256"=>17, "blue256"=>45),
+    "CIG gray 3"=>array ("red256"=>68, "green256"=>78, "blue256"=>90),
+    "CIG gray 4"=>array ("red256"=>109, "green256"=>113, "blue256"=>121),
+    "CIG gray 5"=>array ("red256"=>157, "green256"=>161, "blue256"=>166),
+    "CIG gray 6"=>array ("red256"=>187, "green256"=>191, "blue256"=>195),
+    "CIG gray 7"=>array ("red256"=>218, "green256"=>221, "blue256"=>224),
+    "CIG gray 8"=>array ("red256"=>235, "green256"=>236, "blue256"=>237)
+);
 $oxygencolors = array (
     "black"=>array ("red256"=>0, "green256"=>0, "blue256"=>0),
     "white"=>array ("red256"=>255, "green256"=>255, "blue256"=>255),
@@ -363,6 +411,8 @@
       $extracolors [$extraname] = $defaultcolors [$extraname];
     elseif (isset ($oxygencolors [$extraname]))
       $extracolors [$extraname] = $oxygencolors [$extraname];
+    elseif (isset ($cigcolors [$extraname]))
+      $extracolors [$extraname] = $cigcolors [$extraname];
     else {
       $red = $hex / 256 / 256 % 256;
       $green = $hex / 256 % 256;
@@ -377,6 +427,8 @@
 
 foreach ($oxygencolors as $name=>$oxygencolor)
     computeColor ($oxygencolors [$name]);
+foreach ($cigcolors as $cigname=>$cigcolor)
+    computeColor ($cigcolors [$cigname]);
 foreach ($defaultcolors as $defaultname=>$defaultcolor)
     computeColor ($defaultcolors [$defaultname]);
 foreach ($extracolors as $extraname=>$extracolor)
@@ -385,24 +437,31 @@
 if ($_GET ["sortby"] == "name") {
   ksort ($defaultcolors);
   ksort ($oxygencolors);
+  ksort ($cigcolors);
 } elseif ($_GET ["sortby"] == "hex") {
   uasort ($defaultcolors, "compareHex");
   uasort ($oxygencolors, "compareHex");
+  uasort ($cigcolors, "compareHex");
 } elseif ($_GET ["sortby"] == "hue") {
   uasort ($defaultcolors, "compareHue");
   uasort ($oxygencolors, "compareHue");
+  uasort ($cigcolors, "compareHue");
 } elseif ($_GET ["sortby"] == "saturation") {
   uasort ($defaultcolors, "compareSaturation");
   uasort ($oxygencolors, "compareSaturation");
+  uasort ($cigcolors, "compareSaturation");
 } elseif ($_GET ["sortby"] == "brightness") {
   uasort ($defaultcolors, "compareBrightness");
   uasort ($oxygencolors, "compareBrightness");
+  uasort ($cigcolors, "compareBrightness");
 } elseif (count ($extracolors) > 0 && ! ($_GET ["sortby"] == "luminosity")) {
    uasort ($defaultcolors, "compareContrast");
    uasort ($oxygencolors, "compareContrast");
+   uasort ($cigcolors, "compareContrast");
 } else {
    uasort ($defaultcolors, "compareLuminosity");
    uasort ($oxygencolors, "compareLuminosity");
+   uasort ($cigcolors, "compareLuminosity");
 }
 ?>
 
@@ -457,5 +516,15 @@
 <?php
 printTable ($oxygencolors, "Oxygen palette");
 
+?>
+<h2>KDE CIG Palette Colors</h2>
+<p>
+The following table contains the colors from the KDE CIG palette.
+</p>
+<?php
+printTable ($cigcolors, "CIG palette");
+?>
+
+<?php
 include "footer.inc";
 ?>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic