lib/playa.rb in playa-0.0.6 vs lib/playa.rb in playa-0.0.7
- old
+ new
@@ -9,15 +9,36 @@
module Playa
class Application
include Vedeu
- interface 'playlist' do
+ playlist = interface 'playlist' do
colour foreground: '#afd700', background: '#000000'
cursor false
width 60
height 5
centred true
+ end
+
+ interface 'progress' do
+ colour foreground: '#afd700', background: '#005a00'
+ cursor false
+ width 60
+ height 1
+ y playlist.geometry.top - 2
+ x playlist.geometry.left
+ centred false
+ delay 0.5
+ end
+
+ interface 'status' do
+ colour foreground: '#d70000', background: '#000000'
+ cursor false
+ width 60
+ height 1
+ y playlist.geometry.bottom + 1
+ x playlist.geometry.left
+ centred false
end
def self.start(args = [])
Controller.new(args)