SVN: toys/rsget.pl: RSGet/HTTPRequest.pm data/main.css

sparky sparky at pld-linux.org
Sun Dec 19 23:09:35 CET 2010


Author: sparky
Date: Sun Dec 19 23:09:35 2010
New Revision: 12004

Modified:
   toys/rsget.pl/RSGet/HTTPRequest.pm
   toys/rsget.pl/data/main.css
Log:
- use color information from for active downloads from RSGet::Line


Modified: toys/rsget.pl/RSGet/HTTPRequest.pm
==============================================================================
--- toys/rsget.pl/RSGet/HTTPRequest.pm	(original)
+++ toys/rsget.pl/RSGet/HTTPRequest.pm	Sun Dec 19 23:09:35 2010
@@ -181,16 +181,9 @@
 sub act_info
 {
 	my $act = shift;
-	my ( $logo, $line, $o ) = @$act;
+	my ( $logo, $line, $o, $color ) = @$act;
 
-	my %wait_to_color = (
-		restart => "orange",
-		multi => "red",
-		problem => "red",
-		wait => "blue",
-		delay => "bluegreen",
-	);
-	my $color = $o->{wait} ? $wait_to_color{ $o->{wait} } : "green";
+	$color ||= "gray";
 
 	my $uri = $o->{uri};
 	my $uriid = makeid( \%main_ids, "act", $uri, $uri );

Modified: toys/rsget.pl/data/main.css
==============================================================================
--- toys/rsget.pl/data/main.css	(original)
+++ toys/rsget.pl/data/main.css	Sun Dec 19 23:09:35 2010
@@ -138,7 +138,7 @@
 	background: #AAF;
 	border-color: #22F;
 }
-li.bluegreen {
+li.cyan {
 	background: #AED;
 	border-color: #2EC;
 }
@@ -146,6 +146,10 @@
 	background: #FCA;
 	border-color: #F82;
 }
+li.gray {
+	background: #CCC;
+	border-color: #222;
+}
 
 .error {
 	color: #F00;
@@ -172,12 +176,15 @@
 li.blue div.progress {
 	background: #DDF;
 }
-li.bluegreen div.progress {
+li.cyan div.progress {
 	background: #DFE;
 }
 li.orange div.progress {
 	background: #FDC;
 }
+li.gray div.progress {
+	background: #EEE;
+}
 
 div.progress div {
 	position: absolute;


More information about the pld-cvs-commit mailing list