Re: Color for selections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, that seems to work as expected. There is a nice piece of code
illustrating the procedure here (from git://git.gnome.org/evincemaster):

https://code.ohloh.net/file?fid=X8fZTvkzyVB3u7kL5jpLSGknMV0&cid=JMGdDhvyM0I


On 27.07.2014 14:03, Jasper St. Pierre wrote:
> In GNOME, we use a fairly dark blue color for selections.
> 
> You can get it by applying the GTK_STYLE_CLASS_RUBBERBAND style to your
> widget. If you don't have a widget, you can use the gtk_render_* APIs on a
> style context so that the background and border are rendered correctly.
> 
> 
> On Sat, Jul 26, 2014 at 12:23 PM, ax487 <ax487@xxxxxx> wrote:
> 
>> Hello all,
>>
>> I am (still) porting from gtk2 to gtk3 and I just read about the style
>> properties of widgets. I want to draw a selection around some objects
>> (think of the rectangle / lasso selection in gimp). I would like to know
>> if there is some theme-dependent color that I can use. The background of
>> the selection is mostly white, so it should be something dark so there
>> is sufficient contrast. Is a suitable color available using some
>> `gtk_style_context_get_color' function?
>>
>> ax487
>> _______________________________________________
>> gtk-list mailing list
>> gtk-list@xxxxxxxxx
>> https://mail.gnome.org/mailman/listinfo/gtk-list
>>
> 
> 
> 
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list




[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux