summaryrefslogtreecommitdiff
path: root/manual/advanced_topics/viewports/colour-conditional.tex
diff options
context:
space:
mode:
authorAlex Parker <rockbox@aeparker.com>2009-09-20 17:03:11 +0000
committerAlex Parker <rockbox@aeparker.com>2009-09-20 17:03:11 +0000
commit9cbf1c3886cee9a6a9c59698c17d4214ca6e6aae (patch)
tree991a2f41d191249327e8da228271da8078e38675 /manual/advanced_topics/viewports/colour-conditional.tex
parent7e229f9c50e14ee059be9a746d67ceba1c2db96e (diff)
downloadrockbox-9cbf1c3886cee9a6a9c59698c17d4214ca6e6aae.tar.gz
rockbox-9cbf1c3886cee9a6a9c59698c17d4214ca6e6aae.zip
Port r22756 to the 3.4 branch - Add viewports to the manual. Adapted from FS#9934 by Jonas Häggqvist and FS#10553 by David Kauffmann.
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_4@22757 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'manual/advanced_topics/viewports/colour-conditional.tex')
-rw-r--r--manual/advanced_topics/viewports/colour-conditional.tex15
1 files changed, 15 insertions, 0 deletions
diff --git a/manual/advanced_topics/viewports/colour-conditional.tex b/manual/advanced_topics/viewports/colour-conditional.tex
new file mode 100644
index 0000000000..bcef715263
--- /dev/null
+++ b/manual/advanced_topics/viewports/colour-conditional.tex
@@ -0,0 +1,15 @@
1\begin{example}
2 %?C<%Vda|%Vdb>
3 %Vl|a|10|10|50|50|-|-|-|
4 %Cl|0|0|50|50|
5 %C
6 %Vl|a|0|70|70|14|1|-|-|
7 %s%acThere you have it: Album art.
8 %Vl|b|20|14|50|14|1|ff0000|ffffff|
9 %t1%acWarning:;%t.1
10 %Vl|b|20|30|50|50|1|000000|ffffff|
11 %sNo album art found
12 %scheck your filenames.
13\end{example}
14This example checks for album art. Album art will be displayed in viewport 'a', if
15it is found. Otherwise a red flashing warning will be displayed in viewport 'b'.