shoes / shoes3

a tiny graphical app kit for ruby
http://walkabout.mvmanila.com
Other
181 stars 19 forks source link

Support for transparency in GUI? #412

Closed LWFlouisa closed 5 years ago

LWFlouisa commented 6 years ago

Before I request, how do to do hashtags on here?

Anyway, is there a way to add transparency to GUI windows? The situation I'm thinking of specifically is developing for stuff like google glass, but not google glass.

I'm wanting to do games and apps for non augmented reality too of course, but I wanted to ask ahead of time before fruitlessly searching.

ccoupe commented 6 years ago

Hi @LWFlouisa - there is very limited support at the Window level. From the manual:

Shoes.app do
   @b = banner "Opacity\n"

   slider fraction: 1.0 do |n|
      app.opacity = n.fraction
      @b.text = "Opacity %.2f\n" % n.fraction
   end
end
LWFlouisa commented 6 years ago

Thanks! Figured it out.:D

In the advanced tab, turns out there is app.opacity.

As an example opacity.

app.opacity = 0.5