Sha256: 6653404e3599f023aff792accafe975aefa28e6f6e9f9f65742bfda769fba29f

Contents?: true

Size: 799 Bytes

Versions: 1

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true

Shoes.app width: 700, height: 600 do
  title "Shoes is a ", link("tiny") { alert "Cool!" }, " graphics toolkit. "

  flow width: 0.4 do
    image File.join(Shoes::DIR, 'static/shoes-icon.png'),
          click: ->() { alert "You're soooo quick!" }
  end

  flow width: 0.6 do
    tagline "It's simple and straightforward. ",
            link("Shoes ") { alert "Yay!" },
            "was born to be easy! ",
            link("Shoes ") { alert "Yay!" },
            "was born to be easy! ",
            link("Shoes ") { alert "Yay!" },
            "was born to be easy! ",
            "Really, it was made for absolute beginners. "
  end

  subtitle link(strong(em("There's ", fg(bg("really ", "really ", yellow), "#f00"), "nothing to it. "))) { alert "Have fun!" }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.rc1 samples/simple_shoes_intro.rb