1 # $Id: player-display-track.rb 1 2005-04-19 09:41:42Z tilman $
3 c = EDJE.collection("euphoria")
4 parent = c.part("player.normal.group.display")
7 OUTLINE_COLOR = "#01366bc1"
9 c.part("player.time", :text) do |p|
13 d.rel[0].to = d.rel[1].to = parent
14 d.rel[0].set_offset(15, 9)
15 d.rel[1].set_rel(0.0, 0.0)
16 d.rel[1].set_offset(75, 24)
19 d.outline_color = OUTLINE_COLOR
22 d.font = "fonts/acknowledge2.ttf"
24 d.set_text_align(1.0, 0.5)
28 c.part("player.songname", :text) do |p|
33 d.outline_color = OUTLINE_COLOR
37 d.text = "Metallica - Battery"
38 d.font = "fonts/acknowledge2.ttf"
40 d.set_text_min(true, true)
45 c.part("player.songname.clip", :rect) do |p|
47 d.rel[0].to = d.rel[1].to = parent
48 d.rel[0].set_offset(13, 66)
49 d.rel[1].set_rel(0.0, 0.0)
50 d.rel[1].set_offset(154, 78)
53 c.part("player.songname").clip = p
54 c.part("player.songname").description do |d|
55 d.rel[0].to = d.rel[1].to = p