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.96x96x16: icons/tango_icons_viewers.8x8.bmp
viewers iconset..+x2: icons/tango_small_viewers_mono.bmp viewers iconset..+x2: icons/tango_small_viewers_mono.bmp
show icons: on
statusbar: top statusbar: top
ui viewport: - ui viewport: -
</main> </main>

View file

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