Forum: Ruby-Gnome 2 Border around a Button - coloured?

Posted by Marc Heiler (shevegen)
on 2011-09-05 16:19
Is it possible to make a border in colours around a button easily?

In CSS:

  border: 1px solid crimson;

Hmm... In CSS it is really easy... (I don't use GTK Themes.)
Posted by Simon Arnaud (sarnaud)
on 2011-09-05 21:08
Marc Heiler wrote in post #1020224:
> Is it possible to make a border in colours around a button easily?
>
> In CSS:
>
>   border: 1px solid crimson;

I don't think it's easy with GTK2, if at all possible.

Look at Gtk::Widget#modify_style, modify_fg, modify_bg.

GTK3 has such features : 
http://gnomejournal.org/article/107/styling-gtk-with-css
Posted by Marc Heiler (shevegen)
on 2011-09-06 04:36
Thanks!

The CSS support in GTK3 looks ok too. :)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.