GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: a tiny graphical app kit for ruby
Homepage: http://code.whytheluckystiff.net/shoes
Clone URL: git://github.com/why/shoes.git
 * lib/shoes/cache.rb: that cancel button.
why (author)
Wed May 07 22:30:36 -0700 2008
commit  93db454ce5acb2a24ad7582a30556cb6a652ddf4
tree    bae52c9d92f81c8eb8b462c80f0a0aebe2e05d40
parent  5ea219598742ac092c5f571d7936ff58c7a26562
...
83
84
85
86
87
 
 
88
89
90
91
 
 
92
93
94
...
96
97
98
 
 
 
99
100
101
...
83
84
85
 
 
86
87
88
89
 
 
90
91
92
93
94
...
96
97
98
99
100
101
102
103
104
0
@@ -83,12 +83,12 @@ class Shoes::Setup
0
 
0
   def self.setup_app(setup)
0
     appt = "Setting up for #{setup.script}"
0
- Shoes.app :width => 370, :height => 128, :resizable => false, :title => appt do
0
- background "#EEC".."#DA9"
0
+ Shoes.app :width => 370, :height => 158, :resizable => false, :title => appt do
0
+ background "#EEC".."#AA9"
0
       image :top => 0, :left => 0 do
0
         stroke "#FFF"; strokewidth 0.1
0
- (0..128).step(3) { |i| line 0, i, 370, i }
0
- mask { rect 4, 4, 362, 120, 6 }
0
+ (0..158).step(3) { |i| line 0, i, 370, i }
0
+ mask { rect 4, 4, 362, 150, 6 }
0
       end
0
       @pulse = stack :top => 0, :left => 0
0
       @logo = image "#{DIR}/static/shoes-icon.png", :top => -20, :right => -20
0
@@ -96,6 +96,9 @@ class Shoes::Setup
0
         title "Shoes Setup", :size => 12, :weight => "bold", :margin => 0
0
         para "Preparing #{setup.script}", :size => 8, :margin => 0, :margin_top => 8, :width => 220
0
         progress :width => 1.0, :top => 70, :height => 20
0
+ button "Cancel", :top => 98, :left => 0.4 do
0
+ self.close
0
+ end
0
 
0
         start do
0
           Thread.start(self) do |app|

Comments

    No one has commented yet.