I'm creating an application for fun to learn ruby and shoes, but it seems that I cannot accomplish what I'm trying to do...
I have a stack with some text inside and, under certain circumstances, I want to change the background of that stack, but for some reason all the text inside the stack is deleted. How can I avoid that? I just want to change the background color.
Sample code to show the problem:
Shoes.app do
@first_stack = stack do
background orange
@title = title "my title"
@subtitle = subtitle "my subtitle"
end
button ("change background") {
@first_stack.background gold
}
end