gtk3 active tab styling

Bug #1649148 reported by Fabien Meghazi (OpenERP)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Terminator
Incomplete
Low
Unassigned

Bug Description

I can't style the active tabs of terminator with gtk3's gtk.css

this css declaration:

tab {
    background-color: red;
}

... works (all tabs are red).
But this one...

tab:active {
    background-color: red;
}

... will not change the color of the active tab.
I also tried with :selected but it does not work either.

What am I missing ?

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

A little bit of patience :-) (only joking :-)

I say that because we're doing a bunch of work in this bug
https://bugs.launchpad.net/terminator/+bug/1599453
and this branch
https://code.launchpad.net/~stephen-j-boddy/terminator/gtk3-fix-transparency
to fix transparency. As a result I've had to get pretty gnarly with the CSS styling to fix various problems. I've also cloned the gnome-terminal stylings used under Ambiance for fancy tabs.

Terminator should be using the normal styling for the tabs, and indeed, when I use
GTK_DEBUG=interactive terminator
with either the branch before, or after the current work, I get red active tabs by copying and pasting your tab:active snippet. See attached screenshot.

Beyond that I can't say.

Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

Thanks Stephen !

Also I see in the later bug report that you suggest to run terminator with

GTK_DEBUG=interactive terminator

I already tried that before posting and couldn't get the debugger on terminator.

If I use another gtk3 program, let's say GTK_DEBUG=interactive galculator then I can see the debugger window.

Any idea if terminator need particular settings in order to get this gtk inspector ?

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

The only thing that occurs to me off the top of my head is that you have gtk2 terminator installed, and are running/testing gtk3 terminator from a local path. The command above would search the PATH, finding the gtk2 version, which wouldn't work. You would need to give a relative path (i.e. ./terminator for the current directory) to the gtk3 terminator. That's about the only suggestion I have. Otherwise, it should just work.

Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

No, I only have terminator 1.90 installed from the Kali rolling distro based on debian testing and I can tell to the look of the tabs and preference window that it's gtk3. Besides I used strace to ensure it was reading my gtk-3/gtk.css. But that's not a big deal, I'll just wait the bug lp:1599453 to be closed. Thanks !

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Fabien, have you tested the gtk3 head lately? Is it working for you now? If you read through the changes made for lp:1599453 you should see how you can create a css overrides file in your ~/.local/share/themes folder to change aspects of Terminators styling, along with quite a few examples. Please let me know if I can close this bug now.

Changed in terminator:
status: New → Incomplete
Changed in terminator:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.