Sha256: 1b13037f6fac09a944353b83aa65e0ec0d88743f866be743d2a964a927b640e9

Contents?: true

Size: 1.75 KB

Versions: 6

Compression:

Stored size: 1.75 KB

Contents

Shoes.app width: 600, height: 500 do
  stack do
    para "Quick fun"
    flow do
      button "Button", font: "Menlo Bold 14",width: 200, stroke: red,
          tooltip: "Menlo Bold 14" do
        para "menlo bold button"
      end
      button "icon", width: 80, height: 30, icon: "#{DIR}/static/icon-info.png",
          tooltip: "default right", stroke: blue do
      end
    end
    para "What is normal?"
    flow do
      button "Normal", tooltip: "Normal" do para "normal 1" end
      button "Normal", tooltip: "Arial 12", font: "Arial 12" do para "normal 2" end
    end
    para "try some font names"
    flow do
      button "Curry", font: "Courier New Italic 12",
        tooltip: "Courier New Italic 12" do end
      button "Short", font: "Monaco 17", tooltip: "Monaco 17" do end
    end
    para "testing icon/title interactions"
    flow do
      button "left", width: 80, icon: "#{DIR}/static/icon-info.png",
          icon_pos: "left", tooltip: "title left" do
        para "left image"
      end
      button  width: 80, icon: "#{DIR}/static/icon-info.png",
          tooltip: "just icon" do
        para "icon only"
      end
      button "right", width: 80, icon: "#{DIR}/static/icon-info.png",
          icon_pos: "right" do
          para "right image"
      end
      button "top", width: 80, height: 45, icon: "#{DIR}/static/icon-info.png",
          icon_pos: "top" do
        para "top image"
      end
      button "bottom", width: 80, height: 45, icon: "#{DIR}/static/icon-info.png",
          icon_pos: "bottom" do
        para "bottom image"
      end
    end
    para "testing defaults"
    flow do
      button "Fail 1", tooltip: "size missing", font: "Monaco" do end
      button "Fail 2", tooltip: "unknown font", font: "missing font 12" do end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes3-tests/button/button.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes3-tests/button/button.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes3-tests/button/button.rb
lacci-0.2.1 examples/legacy/not_checked/shoes3-tests/button/button.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes3-tests/button/button.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes3-tests/button/button.rb