Split the collections into their own files.
[multipass-eu.git] / src / player-display-track.rb
1 # $Id: player-display-track.rb 1 2005-04-19 09:41:42Z tilman $
2
3 c = EDJE.collection("euphoria")
4 parent = c.part("player.normal.group.display")
5
6 TEXT_COLOR = "#95e3fd"
7 OUTLINE_COLOR = "#01366bc1"
8
9 c.part("player.time", :text) do |p|
10         p.effect = :outline
11
12         p.description do |d|
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)
17
18                 d.color = TEXT_COLOR
19                 d.outline_color = OUTLINE_COLOR
20
21                 d.text = "00:06:35"
22                 d.font = "fonts/acknowledge2.ttf"
23                 d.font_size = 15
24                 d.set_text_align(1.0, 0.5)
25         end
26 end
27
28 c.part("player.songname", :text) do |p|
29         p.effect = :outline
30
31         p.description do |d|
32                 d.color = TEXT_COLOR
33                 d.outline_color = OUTLINE_COLOR
34
35                 d.set_align(0.0)
36
37                 d.text = "Metallica - Battery"
38                 d.font = "fonts/acknowledge2.ttf"
39                 d.font_size = 14
40                 d.set_text_min(true, true)
41                 d.set_text_align(0.0)
42         end
43 end
44
45 c.part("player.songname.clip", :rect) do |p|
46         p.description do |d|
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)
51         end
52
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
56         end
57 end