Skip to content

Instantly share code, notes, and snippets.

@IBBoard
Created April 12, 2014 16:00
Show Gist options
  • Select an option

  • Save IBBoard/10542991 to your computer and use it in GitHub Desktop.

Select an option

Save IBBoard/10542991 to your computer and use it in GitHub Desktop.
MediterraneanNight extras for Gnome 3.12
/** Extra rules by IBBoard to get nicer GTK3 header bars **/
/* Also requires https://gist.github.com/Dvad/9210763 */
.header-bar .button, .header-bar .button:last-child {
background-image: linear-gradient(to bottom,
shade(@theme_bg_dark_color, 1.40),
shade(@theme_bg_dark_color, 1.10));
color: @theme_text_dark_color;
box-shadow: inset 0px 4px alpha(#000, 0.02),
inset 0px 3px alpha(#000, 0.02),
inset 0px 2px alpha(#000, 0.06),
inset 3px 0px alpha(#000, 0.02),
inset 2px 0px alpha(#000, 0.03),
inset -3px 0px alpha(#000, 0.02),
inset -2px 0px alpha(#000, 0.03),
inset 0px -2px alpha(#000, 0.01),
inset 0px 1px alpha(#000, 0.25),
inset 1px 0px alpha(#000, 0.16),
inset -1px 0px alpha(#000, 0.16),
inset 0px -1px alpha(#000, 0.09);
text-shadow: none;
}
.header-bar .button:active {
background-image: linear-gradient(to bottom,
shade(@theme_selected_bg_color, 0.95),
shade(@theme_selected_bg_color, 1.05));
border-color: shade(@theme_selected_bg_color, 0.5);
}
.header-bar .button:insensitive, .header-bar .button:insensitive:last-child {
box-shadow: inset 0px 4px alpha(#000, 0.02),
inset 0px 3px alpha(#000, 0.02),
inset 0px 2px alpha(#000, 0.06),
inset 3px 0px alpha(#000, 0.02),
inset 2px 0px alpha(#000, 0.03),
inset -3px 0px alpha(#000, 0.02),
inset -2px 0px alpha(#000, 0.03),
inset 0px -2px alpha(#000, 0.01),
inset 0px 1px alpha(#000, 0.25),
inset 1px 0px alpha(#000, 0.16),
inset -1px 0px alpha(#000, 0.16),
inset 0px -1px alpha(#000, 0.09);
background-image: linear-gradient(to bottom,
mix(shade(@theme_bg_dark_color, 1.40), @inactive_frame_color, 0.2),
mix(shade(@theme_bg_dark_color, 1.10), @inactive_frame_color, 0.2));
text-shadow: none;
}
.header-bar .button *:insensitive {
background-color: transparent;
}
@rbrito
Copy link

rbrito commented Apr 30, 2014

@IBBoard, would you like helping a little bit keeping this theme at least moderately working? I would love to get it (or something close to it) usable with newer gtk3 versions.

In particular, I am trying to keep the skeleton of a Debian package at:

https://github.com/rbrito/pkg-mediterranean-gtk-themes

Since you seem to know more about theming than I do (I know next to nothing, but I am willing to learn and I have some experience with "vanilla" CSS), I would love to learn from you.

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