From 08bc43f0fd0bf3a67603521f837c81b7a83a47bb Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Sun, 11 Feb 2007 20:49:48 +0000 Subject: [PATCH] add support for foreground and background colors git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12272 a1c6a512-1295-4272-9138-f99709370657 --- wps/wpsbuild.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index dd8c91d0fb..e976941192 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl @@ -171,6 +171,12 @@ MOO if($font) { push @out, "font: /.rockbox/fonts/$font\n"; } + if($fgcolor) { + push @out, "foreground color: $fgcolor\n"; + } + if($bgcolor) { + push @out, "background color: $bgcolor\n"; + } if($statusbar) { push @out, "statusbar: $statusbar\n"; } @@ -212,6 +218,8 @@ while() { undef $width; undef $height; undef $font; + undef $fgcolor; + undef $bgcolor; undef $statusbar; undef $author; undef $req_g_wps; @@ -306,6 +314,12 @@ while() { elsif($l =~ /^Font: (.*)/i) { $font = $1; } + elsif($l =~ /^Foreground Color: (.*)/i) { + $fgcolor = $1; + } + elsif($l =~ /^Background Color: (.*)/i) { + $bgcolor = $1; + } elsif($l =~ /^Font\.${main_width}x${main_height}x$main_depth: (.*)/i) { $font = $1; }