Skip to content

Instantly share code, notes, and snippets.

@budnik
Last active January 26, 2021 03:08
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save budnik/4184485 to your computer and use it in GitHub Desktop.
Save budnik/4184485 to your computer and use it in GitHub Desktop.
Gnome terminal CSS for ambiance theme
/* gnome-terminal */
TerminalScreen {
-TerminalScreen-background-darkness: 0.95;
background-color: #300a24;
color: #fff;
}
TerminalWindow,
TerminalWindow.background {
background-image: none;
background-color: @dark_bg_color;
color: @dark_fg_color;
}
TerminalWindow .notebook {
border: 0;
padding: 0;
}
TerminalWindow .notebook tab.top:active{
padding: 0;
border-image: none;
background-color: alpha(red,0.4);
}
TerminalWindow .notebook tab.top{
padding: 0;
border-width: 0;
background-image: none;
background-color: @dark_b!g_color;
color: gray;
}
@budnik
Copy link
Author

budnik commented Jan 8, 2013

Looks better on 12.04.1

@llondon6
Copy link

Thanks for this!

Do you know of a good resource to learn CSS for window decorations in Ubuntu? For example, what are all of the properties available for "TerminalWindow .notebook { ... }"?

@AlexHaaniWink
Copy link

screenshot from 2016-04-05 16-56-48

This is a screenshot from Ubuntu 16.04, with Gnome installed afterwards. It shows the gnome-terminal when the window does not have focus. That makes the tab-close buttons and that new-tab button turn light gray instead of dark. Any chance you know how to fix that?

Also, the dropdown button at the right is always this light color.

@chenzhiwei
Copy link

@AlexHaaniWink Using following css to set the button color:

TerminalWindow .button {
  background-color: #000;
}

@lhotari
Copy link

lhotari commented May 9, 2016

This makes the buttons nicer for a dark theme and to use less vertical space:

TerminalWindow .notebook .button,
TerminalWindow .notebook .button:active {
    padding: 2 2 2 10;
    background-image: none;
    border: 0;
}

@abaracedo
Copy link

Do you know how it's possible to know which elements and classes are available?

@syddel
Copy link

syddel commented Aug 21, 2016

How can I change the font color in the active tab (I want to make it brighter)?

@kedmond
Copy link

kedmond commented Sep 7, 2016

@AlexHaaniWink Did you ever figure this out? Thanks.

@yashLadha
Copy link

when there is a warning it shows buttons as presented by @AlexHaaniWink in ubuntu 16.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment