diff options
Diffstat (limited to 'wps')
| -rw-r--r-- | wps/WPSLIST | 5 | ||||
| -rwxr-xr-x | wps/wpsbuild.pl | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/wps/WPSLIST b/wps/WPSLIST index 3b10c30..3286b1e 100644 --- a/wps/WPSLIST +++ b/wps/WPSLIST @@ -202,6 +202,11 @@ viewers iconset..+x2: icons/tango_small_viewers_mono.bmp show icons: on statusbar: top ui viewport: - +# Touchscreen: whether to show line separators or not. Default to yes only on touchscreen targets. +list separator height: 0 +list separator height..+&touchscreen: auto +list separator color: 808080 + </main> <remote> diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index d6d8085..52492f6 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl @@ -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; } |