Sha256: 5d75af42bbe109cdeca7131a3d84995a77370e6a529db3c8b1aa9abdd4331690

Contents?: true

Size: 1019 Bytes

Versions: 6

Compression:

Stored size: 1019 Bytes

Contents

require 'purple_shoes'

Shoes.app do
  popup = proc{alert 'Testing style method...'}

  s1 = stack width: 0.5, height: 1.0 do
    background cornflowerblue
    @star = star 120, 120, 10, 100, 50
    @star.click &popup
    @msg = para fg('Wait 5 seconds...', yellow), left: 10, top: 450
  end

  s2 = stack width: 0.5, height: 1.0 do
    background coral
    para 'Purple Shoes is one of colorful Shoes. It is written in JRuby with SWT.'
    @para = para 'Testing, ', link('test', &popup), ', test. ',
      strong('Breadsticks. '),
      em('Breadsticks. '),
      code('Breadsticks. '),
      bg(fg(strong(ins('EVEN BETTER.')), white), rgb(255, 0, 192)),
      sub('fine!')
    para 'Yah! Yah! Yah!'
  end

  timer 5 do
    @star.style width: 140, height: 140, left: 90, top: 90, fill: gold..deeppink, outer: 70, inner: 50
    @para.style align: 'center', size: 24, stroke: green
    s1.style width: 0.3
    s2.style width: 0.7
    @msg.text = 'Looks good to me!'
    aflush
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
purple_shoes-0.7.166 samples/sample49.rb
purple_shoes-0.6.153 samples/sample49.rb
purple_shoes-0.5.149 samples/sample49.rb
purple_shoes-0.0.126 samples/sample49.rb
purple_shoes-0.0.115 samples/sample49.rb
purple_shoes-0.0.101 samples/sample49.rb