Make Cabbiev2 enable icons when selected

adds 'show icons: on' to cabbiev2.cfg file.
when you switch theme away from cabbiev2 to a theme
with 'show icons: off' then switch back to cabbiev2
the icons are still off which doesnt mimic the default
settings presented by rockbox.

Change-Id: Iee051c687a9a6843fece96a2a16280916b1d2599
Reviewed-on: http://gerrit.rockbox.org/325
Reviewed-by: Dominik Riebeling <Dominik.Riebeling@gmail.com>
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
This commit is contained in:
Alex Mayer 2012-10-05 12:17:52 -04:00 committed by Thomas Martitz
parent a0293c7e94
commit 93023002d6
2 changed files with 7 additions and 0 deletions

View file

@ -199,6 +199,7 @@ viewers iconset.240x400x16: icons/tango_icons_viewers.16x16.bmp
viewers iconset.96x96x16: icons/tango_icons_viewers.8x8.bmp
viewers iconset..+x2: icons/tango_small_viewers_mono.bmp
show icons: on
statusbar: top
ui viewport: -
</main>

View file

@ -64,6 +64,7 @@ my $selecttype;
my $iconset;
my $remoteiconset;
my $viewericon;
my $showicons;
my $remoteviewericon;
my $lineselecttextcolor;
my $filetylecolor;
@ -295,6 +296,7 @@ MOO
push @out, "statusbar: $statusbar\n" if (defined($statusbar));
push @out, "iconset: $iconset\n" if (defined($iconset));
push @out, "viewers iconset: $viewericon\n" if (defined($viewericon));
push @out, "show icons: $showicons\n" if (defined($viewericon) && defined($showicons));
push @out, "ui viewport: $listviewport\n" if (defined($listviewport));
if ($has_remote) {
@ -411,6 +413,7 @@ while(<WPS>) {
undef $iconset;
undef $remoteiconset;
undef $viewericon;
undef $showicons;
undef $remoteviewericon;
undef $lineselecttextcolor;
undef $filetylecolor;
@ -487,6 +490,9 @@ while(<WPS>) {
elsif($_ = check_res($l, "viewers iconset")) {
$viewericon = $_;
}
elsif($l =~ /^show icons: *(.*)/i) {
$showicons = $1;
}
elsif($l =~ /^line selector text color: *(.*)/i) {
$lineselecttextcolor = $1;
}