[Fwd: Re: treeview row shading]




--
Jason Burchfield
CAS, Inc.
(256) 971-6096
Jason.Burchfield at cas-inc dot com

--- Begin Message ---
Jason Burchfield wrote:

B.Hakvoort wrote:

I can answer your first question, look at
Gtk::TreeView::set_rules_hint().

I'm not sure about your second question.. i could come up with some
hacks, but maybe there's a better way to achieve this.

cheers,

plors

On Thu, 2006-01-05 at 03:08 -0500, Doug McLain wrote:
This is avtually more aof a general gnome/gtk behavior question, so soffy if it's OT for this list but I'm already signed up here so I figured I'd try here first:)

On certain treeviews, namely the Gnome desktop file mananger and most FileChooser dialogs, given a typical black on white theme, the treeview every other row is shaded darker and with some blue. I use a very dark white on black theme, where the bg on most of my apps is black. In this scenario, I dont see the row shading since it tries to make it darker. I would like to know 2 things:

First, I'd like to know how to choose which treeviews use this row shading and which do not. GAIM for example, doesnt use the shading in its rows. Maybe its strictly for file lists, I don't know

Second, and this is what I'm really after, is how to set the method that is used to alter the base color. I would like it to *lighten* the shaded rows instead of darken, since my base rows are black. Even if it's hard coded in gtk, I would be willing to alter it at that level. I like black theme, but I love the alternate line shading.

Doug
--
http://nostar.net/
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

The colors that Gtk::TreeRows are colored depends on the theme you are using. In one of my apps I create a default theme and read in that file using
gtk_rc_parse( FILENAME );

You can add something like :

style "treeview"{

   GtkTreeView::even-row-color = "white"
   GtkTreeView::odd-row-color = "grey"   }

class "GtkTreeView" style "treeview"

to a gtkrc file to get the colors you want.

Jason

sorry didnt reply all

--
Jason Burchfield
CAS, Inc.
(256) 971-6096
Jason.Burchfield at cas-inc dot com



--- End Message ---


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