GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Jul 30, 2014 5:12 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: gtk3 - treeview header custom color
PostPosted: Fri Feb 24, 2012 3:03 pm 
Offline
Familiar Face

Joined: Fri Nov 28, 2008 7:54 am
Posts: 38
Location: Italy, Milan
Hi, I was able to change the grid of a (gtk3) treeview with the following css
Code:
* {
    -GtkTreeView-grid-line-pattern: "\0\0";
    -GtkTreeView-grid-line-width: 3;
}

but cannot figure out how to change the color of the treeview header.
Did anybody succeed doing it and can help me out?
Thanks.

_________________
my projects:
http://giuspen.com/cherrytree
http://giuspen.com/x-tile
http://giuspen.com/nautilus-pyextensions


Top
 Profile  
 
 Post subject: Re: gtk3 - treeview header custom color
PostPosted: Mon Feb 27, 2012 10:16 am 
Offline
Familiar Face

Joined: Thu Dec 15, 2011 6:23 pm
Posts: 36
Location: Hrvatska
TreeView header row is actualy - BUTTONS !
Define CSS for buttons , it will reflect in header row of TreeView.
Cheers !


Top
 Profile  
 
 Post subject: Re: gtk3 - treeview header custom color
PostPosted: Mon Feb 27, 2012 1:59 pm 
Offline
Familiar Face

Joined: Fri Nov 28, 2008 7:54 am
Posts: 38
Location: Italy, Milan
kepica wrote:
TreeView header row is actualy - BUTTONS !
Define CSS for buttons , it will reflect in header row of TreeView.
Cheers !


Thank you, I finally succeeded with the following code:
Code:
column-header .button {
    background-image: -gtk-gradient (linear,
        left top,
        left bottom,
        from (#51cccc),
        color-stop (0.5, darker (#51cccc)),
        to (#51cccc));
}

_________________
my projects:
http://giuspen.com/cherrytree
http://giuspen.com/x-tile
http://giuspen.com/nautilus-pyextensions


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group