aboutsummaryrefslogtreecommitdiff
path: root/templates/wps.liquid
diff options
context:
space:
mode:
Diffstat (limited to 'templates/wps.liquid')
-rw-r--r--templates/wps.liquid77
1 files changed, 77 insertions, 0 deletions
diff --git a/templates/wps.liquid b/templates/wps.liquid
new file mode 100644
index 0000000..3eafe21
--- /dev/null
+++ b/templates/wps.liquid
@@ -0,0 +1,77 @@
+{% capture fonts %}
+%Fl(3,09-Espy Sans-Bold.fnt)
+{% endcapture %}
+
+{% capture images %}
+%xl(pbbd,progressbar_backdrop.bmp,0,0)
+%xl(pbs,progressbar_slider.bmp,0,0)
+{% endcapture %}
+
+{% capture viewports %}
+%Vd(playlist_entry)
+# Viewport conditionals for album art (the `A` prefix is our indicator if the current track has some)
+%?C<%Vd(Ametadata)|%Vd(metadata)>
+%?C<%Vd(Aartist)|%Vd(artist)>
+# This one displays the volume slider if there is a change in volume, the track position otherwise
+%?mv<%Vd(volume)|%Vd(trackpos)>
+{% endcapture %}
+
+{% capture default_title %}Now playing{% endcapture %}
+
+#############
+# Album art #
+#############
+%ax%Vl(Ametadata,4,36,44,44,-)
+%Cl(0,0,44,44,c,c)
+%Cd
+
+##################
+# Playlist entry #
+##################
+%Vl(playlist_entry,4,23,130,9,3)
+%al%pp of %pe
+
+############################
+# Track title or file name #
+############################
+%Vl(Ametadata,52,44,82,12,-)
+%s%al%?it<%it|%fn>
+%Vl(metadata,0,44,138,12,-)
+%s%ac%?it<%it|%fn>
+
+##################
+# (Album) artist #
+##################
+%Vl(Aartist,52,60,82,12,-)
+%s%al%?ia<%ia|%?iA<%iA|Unknown Artist>>
+%Vl(artist,0,60,138,12,-)
+%s%ac%?ia<%ia|%?iA<%iA|Unknown Artist>>
+
+##################
+# Track position #
+##################
+# the value
+%Vl(trackpos,4,98,129,10,2)
+%al%pc%ar-%pr
+# the bar
+%Vl(trackpos,4,85,129,11,-)
+%pb(0,0,129,11,image,progressbar.bmp,backdrop,pbbd)
+
+#######################
+# Volume + volume bar #
+#######################
+# the value
+%Vl(volume,4,98,129,10,2)
+%ac%?if(%pv, >, 0)<+|>%pvdB
+# the bar, borders drawn by hand to avoid flickering
+%Vl(volume,4,85,129,11,-)
+%dr(2, 0, 125, 1)
+%dr(1, 1, 1, 1)
+%dr(127, 1, 1, 1)
+%dr(0, 2, 1, 7)
+%dr(128, 2, 1, 7)
+%dr(1, 9, 1, 1)
+%dr(127, 9, 1, 1)
+%dr(2, 10, 125, 1)
+%Vl(volume,6,87,125,7,-)
+%pv(0,0,-,-,nobar,nofill,slider,pbs)