Advertisement
Narzew

Kurs Ruby & Shoes - Odcinek 7

Aug 29th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.90 KB | None | 0 0
  1. #encoding: utf-8
  2. # KURS RUBY & SHOES: https://www.youtube.com/watch?v=kIrWFPyZMwI&index=1&list=PLcbGBiker9IJwokPtnPaz_SwovRfVtvWr
  3. Shoes.app title: "Style tekstu", width:800, height:600, resizable: false do
  4.     def main_screen
  5.         stack {
  6.             @p = title "Tytuł aplikacji"
  7.             @p.style(stroke: blue, underline: "error", undercolor: red)
  8.             @p.style(align: "center")
  9.             @s = subtitle "Podtytuł"
  10.             @s.style(align: "right")
  11.             @s.style(stroke: chartreuse)
  12.             @b = banner "Widoczny tekst"
  13.             @b.style(strikethrough: "single")
  14.             @b.style(strikecolor: red)
  15.             @t = para "Zwyczajny tekst"
  16.             @t.style(family: "Georgia", size:"xx-large", stroke: blue,
  17.             emphasis: "italic", align: "center", weight: "heavy",
  18.             strikethrough: "single", strikecolor: red, underline: "error",
  19.             undercolor: "red")
  20.             # none, oblique, italic
  21.             caption("Pogrubiony tekst", stroke: rgb(139, 0, 139))
  22.         }
  23.     end
  24.     main_screen
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement