You are not logged in.

#1 2012-02-09 21:37:12

monacelli
Member
Registered: 2011-11-11
Posts: 14

[Solved] Where does Chrome get it's GTK+ info from?

In XFCE I use Greybird as my gtk2/gtk3 theme and Zukitwo for my window manager theme.  I like the way Chromium looks when you click on "Use GTK+ theme" but the titlebar doesn't match the rest of my windows.  As far as I know there's no way to set up a manifest.json so that Chrome uses system icons so I'm going to have to edit Greybird.  My question is what file in the Greybird theme does Chrome pull it's GTK+ info from?

Here's a picture of the differences between my custom theme and 'use gtk+ theme'.
http://i.imgur.com/Ma1PE.png

Last edited by monacelli (2012-02-10 14:27:29)

Offline

#2 2012-02-09 22:07:41

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] Where does Chrome get it's GTK+ info from?

You say 'the titlebar doesn't match the rest of my windows' -- are you looking for the option 'Use system title bar and borders'? (it's in the title bar's context menu)

Offline

#3 2012-02-09 22:30:52

monacelli
Member
Registered: 2011-11-11
Posts: 14

Re: [Solved] Where does Chrome get it's GTK+ info from?

Raynman wrote:

You say 'the titlebar doesn't match the rest of my windows' -- are you looking for the option 'Use system title bar and borders'? (it's in the title bar's context menu)

Yep, that's one way of making Chrome blend in a little better but not exactly what I'm looking for. Thanks though. smile  Here's a quick Gimp edit to show what I'm trying to achieve, just not sure which Greybird file Chromium pulls the color for the window borders from.

http://i.imgur.com/KKove.png

Last edited by monacelli (2012-02-09 22:37:00)

Offline

#4 2012-02-10 02:50:40

flan_suse
Member
Registered: 2010-10-28
Posts: 121

Re: [Solved] Where does Chrome get it's GTK+ info from?

The Shimmer Project added the above mentioned customizations to Chromium in their Greybird theme. This can be found in the file gtk-2.0/gtkrc:

gtkrc wrote:

# Google Chrome/Chromium theming (requires 9.0.597 or newer)
style "chrome-gtk-frame"
{
    ChromeGtkFrame::frame-color = shade (0.5, @bg_color)
    ChromeGtkFrame::inactive-frame-color = shade (0.5, @bg_color)

    ChromeGtkFrame::frame-gradient-size = 100
    ChromeGtkFrame::frame-gradient-color = shade (1.08,@bg_color)
    ChromeGtkFrame::inactive-frame-gradient-color = shade (1.08,@bg_color)

    ChromeGtkFrame::scrollbar-trough-color = @base_color
    ChromeGtkFrame::scrollbar-slider-prelight-color = @panel_bg
    ChromeGtkFrame::scrollbar-slider-normal-color = shade (1.4, @panel_bg)
}

class "ChromeGtkFrame" style "chrome-gtk-frame"

Keep in mind, this is a GTK2 override and has nothing to do with the window decorations. They themed Chromium's tabs and the like to match the xfwm4 Greybird theme. Without this override, the colors would not match. I actually like what they've done. Chromium is not the only application they customized to match Greybird.

Last edited by flan_suse (2012-02-10 02:51:57)

Offline

#5 2012-02-10 14:20:25

monacelli
Member
Registered: 2011-11-11
Posts: 14

Re: [Solved] Where does Chrome get it's GTK+ info from?

That was exactly the info I was looking for.  Thank you!  Googling "ChromeGtkFrame" provided some more info here.  Hopefully this helps other people that use a mix between two different themes and want Chrome to blend in better.

Here's the end result, which is 100% what I was trying to do.

http://i.imgur.com/8A1Vu.png

Offline

#6 2012-02-10 18:48:09

flan_suse
Member
Registered: 2010-10-28
Posts: 121

Re: [Solved] Where does Chrome get it's GTK+ info from?

You're welcome, and I'm glad you were then able to get it to your liking! That's a useful link, so I added it to my bookmarks.

Offline

Board footer

Powered by FluxBB