summaryrefslogtreecommitdiffstats
path: root/wps
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2007-02-11 20:49:48 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2007-02-11 20:49:48 +0000
commit08bc43f0fd0bf3a67603521f837c81b7a83a47bb (patch)
tree135fbd7fb2d37cf10bd406439a1297dd3f6915b8 /wps
parent37d246ab4b7ce03f71fe2bec78413145ea0f49e2 (diff)
downloadrockbox-08bc43f0fd0bf3a67603521f837c81b7a83a47bb.tar.gz
rockbox-08bc43f0fd0bf3a67603521f837c81b7a83a47bb.tar.bz2
rockbox-08bc43f0fd0bf3a67603521f837c81b7a83a47bb.zip
add support for foreground and background colors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12272 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'wps')
-rwxr-xr-xwps/wpsbuild.pl14
1 files changed, 14 insertions, 0 deletions
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(<WPS>) {
undef $width;
undef $height;
undef $font;
+ undef $fgcolor;
+ undef $bgcolor;
undef $statusbar;
undef $author;
undef $req_g_wps;
@@ -306,6 +314,12 @@ while(<WPS>) {
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;
}