-# $Id: playlist_item.rb 12 2005-04-24 19:51:18Z tilman $
+# $Id: playlist_item.rb 14 2005-04-24 20:38:32Z tilman $
TEXT_COLOR_HILIGHT = "#f0fafd"
EDJE.collection("playlist_item") do |c|
c.set_size(150, 10)
- ["title", "length"].each do |name|
+ ["title", "duration"].each do |name|
c.part(name, :text) do |p|
p.effect = :outline
["default", "selected"].each do |state|
c.part("title").description(state) do |d|
- d.rel[1].set_to(c.part("length"), nil)
+ d.rel[1].set_to(c.part("duration"), nil)
d.rel[1].set_rel(0.0, 1.0)
#d.rel[0].set_offset(0, 0)
d.rel[1].set_offset(5, 0)
end
- c.part("length").description(state) do |d|
+ c.part("duration").description(state) do |d|
d.rel[0].set_rel(1.0, 0.0)
d.rel[0].set_offset(-35, 0)
p.mode = state == "selected" ? :accelerate : :decelerate
p.time = 0.5
p.targets << ProgramTarget.new(c.part("title"))
- p.targets << ProgramTarget.new(c.part("length"))
+ p.targets << ProgramTarget.new(c.part("duration"))
end
end