add support for foreground and background colors

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12272 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcoen Hirschberg 2007-02-11 20:49:48 +00:00
parent 37d246ab4b
commit 08bc43f0fd

View file

@ -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;
}