mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Touchscreen: Show a line separator in lists.
This patch adds a configurable line separator between list items, very similar to lists in Android. Additionally, below the list item there is a thicker line. It can be disabled in the settings. Its color can be configured as well. Remote and monochrome displays are explicitly unsupported. If there is desire this can be changed but it doesn't seem useful to me. Change-Id: I005313b0d8f5ecd15864bf20e66ea4e3390d8b7d
This commit is contained in:
parent
20e114c1a0
commit
05a67d021c
10 changed files with 116 additions and 14 deletions
|
@ -55,6 +55,8 @@ my $font;
|
|||
my $remotefont;
|
||||
my $fgcolor;
|
||||
my $bgcolor;
|
||||
my $sepcolor;
|
||||
my $sep;
|
||||
my $statusbar;
|
||||
my $remotestatusbar;
|
||||
my $author;
|
||||
|
@ -291,6 +293,9 @@ MOO
|
|||
push @out, "line selector start color: $lineselectstart\n" if($lineselectstart);
|
||||
push @out, "line selector end color: $lineselectend\n" if($lineselectend);;
|
||||
push @out, "line selector text color: $lineselecttextcolor\n" if($lineselecttextcolor);
|
||||
# list separator actually depends on HAVE_TOUCSCREEN
|
||||
push @out, "list separator height: $sep\n" if($sep);
|
||||
push @out, "list separator color: $sepcolor\n" if($sepcolor);
|
||||
}
|
||||
|
||||
push @out, "font: $font\n" if (defined($font));
|
||||
|
@ -430,6 +435,8 @@ while(<WPS>) {
|
|||
undef $remotefont;
|
||||
undef $fgcolor;
|
||||
undef $bgcolor;
|
||||
undef $sepcolor;
|
||||
undef $sep;
|
||||
undef $statusbar;
|
||||
undef $remotestatusbar;
|
||||
undef $author;
|
||||
|
@ -502,6 +509,12 @@ while(<WPS>) {
|
|||
elsif($l =~ /^Background Color: *(.*)/i) {
|
||||
$bgcolor = $1;
|
||||
}
|
||||
elsif($_ = check_res_feature($l, "list separator color")) {
|
||||
$sepcolor = $_;
|
||||
}
|
||||
elsif($_ = check_res_feature($l, "list separator height")) {
|
||||
$sep = $_;
|
||||
}
|
||||
elsif($l =~ /^line selector start color: *(.*)/i) {
|
||||
$lineselectstart = $1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue