Dear all, thanks for your answer of my other question now I got another question how to change color of greyed widget? I use style "click button to edit" form, so when my frame is not in editable mode, I set sensitive to false. but the frame became grey that makes it hard to read anything written on textbox inside the frame I need to set sensitive to false, change color for easy recognation, but still having the text readble easily, i don't know, perhaps more yellowish rather than greyish? Thanks :)
on 2011-10-25 10:17
on 2011-10-25 12:00
hendra kusuma wrote in post #1028313: > how to change color of greyed widget? > > I use style "click button to edit" form, so when my frame is not in > editable > mode, > I set sensitive to false. > but the frame became grey that makes it hard to read anything written on > textbox inside the frame > > I need to set sensitive to false, change color for easy recognation, but > still having the text readble easily, > i don't know, perhaps more yellowish rather than greyish? Something like : widget_instance.modify_bg(Gtk::STATE_INSENSITIVE, Gdk::Color.parse("yellow")) Look at : http://ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=vie... and ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=view&p=Gtk%3A%3AWidget&key=modify_base#modify_base/modify Simon
on 2011-10-25 12:39
On Tue, Oct 25, 2011 at 6:00 PM, Simon Arnaud < ruby-forum-incoming@andreas-s.net> wrote: > > I need to set sensitive to false, change color for easy recognation, but > http://ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=vie... > and > > ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=view&p=Gtk%3A%3AWidget&key=modify_base#modify_base/modify > > Simon > Thanks, that's very helpful I found modify_base works here, and that's only on input widget like entry, not container like frame so I change my code to set modify_base of all entry and set modify_text to black to ensure it can be read Well, that fix my problem :)
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
Log in with Google account | Log in with Yahoo account
No account? Register here.