Update of /cvsroot/fink/web/pdb In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv31518
Modified Files: package.php Log Message: make the color difference more pronounced Index: package.php =================================================================== RCS file: /cvsroot/fink/web/pdb/package.php,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- package.php 5 Dec 2007 20:47:52 -0000 1.54 +++ package.php 5 Dec 2007 20:49:12 -0000 1.55 @@ -191,19 +191,19 @@ $dist_names[$dist->getName()]++; } $color_last = count($dist_names) - 1; - $dark = array(227, 202, 255); + #$dark = array(227, 202, 255); + $dark = array(174, 160, 198); $light = array(246, 236, 255); $colors = array(); foreach (range($color_count, $color_last) as $number) { $color = array(); - foreach (range(0, 1) as $index) { + foreach (range(0, 2) as $index) { $dark_color = $dark[$index]; $light_color = $light[$index]; $difference = $light_color - $dark_color; array_push($color, round($dark_color + ($difference / $color_last * $number))); } - array_push($color, 255); array_push($colors, $color); } @@ -212,7 +212,7 @@ if ($last_dist_name != $dist_name) { $color_count++; - $row_color='bgcolor="#' . dechex($colors[$color_count][0]) . dechex($colors[$color_count][1]) . 'ff"'; + $row_color='bgcolor="#' . dechex($colors[$color_count][0]) . dechex($colors[$color_count][1]) . dechex($colors[$color_count][2]) . '"'; } if (!$showall && !$dist->isVisible()) ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs