green_shoes question
- From:
- J. Kaiden
- Date:
- 2011-12-23 @ 19:34
hey folks,
i've got a simple question about differences between green and red shoes.
in red shoes, i can do this:
Shoes.app do
p = para "hi"
button("change"){p.style(stroke: lime)}
end
...and the word 'hi' changes color when i click the button (as expected.)
in green_shoes, however, this example doesn't work. how could i make it
work?
thanks,
- j
Re: [shoes] green_shoes question
- From:
- ashbb
- Date:
- 2011-12-24 @ 00:58
Hi J,
Good question. :)
But sorry, Green Shoes support only a few attributes for style function so
far. :-P
So, if you want to change the color of text, try out the following.
require 'green_shoes'
Shoes.app do
p = para "hi"
button("change"){p.text = fg(p.text, green)}
end
ashbb