Split the collections into their own files.
[multipass-eu.git] / src / playlist_item.rb
diff --git a/src/playlist_item.rb b/src/playlist_item.rb
new file mode 100644 (file)
index 0000000..40b6c63
--- /dev/null
@@ -0,0 +1,33 @@
+# $Id: playlist_item.rb 8 2005-04-24 10:49:53Z tilman $
+
+EDJE.collection("playlist_item") do |c|
+       c.set_size(150, 10)
+
+       c.part("title", :text) do |p|
+               p.effect = :outline
+
+               p.description do |d|
+                       d.color = TEXT_COLOR
+                       d.outline_color = OUTLINE_COLOR
+
+                       d.font = "fonts/acknowledge2.ttf"
+                       d.font_size = 12
+                       d.text = "Dark Tranquillity - Through Smudged Lenses"
+                       d.set_text_align(0.0)
+               end
+       end
+
+       c.part("length", :text) do |p|
+               p.effect = :outline
+
+               p.description do |d|
+                       d.color = TEXT_COLOR
+                       d.outline_color = OUTLINE_COLOR
+
+                       d.font = "fonts/acknowledge2.ttf"
+                       d.font_size = 12
+                       d.text = "04:11"
+                       d.set_text_align(1.0)
+               end
+       end
+end