From 29a7c920c79af460bdff32329ce29e250cd1b4f4 Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Thu, 13 Sep 2012 03:55:47 +0000 Subject: Style general menus and the Sugar palette menus - SL #3879 - Add bottom padding to the menu. - Style separators in menu. - Add exception for the header menu item of the Sugar palette, 1. correct padding and 2. set a background color so it doesn't look clickeable, and looks like an informational header instead. - Add exception for the first separator in the Sugar palette. Signed-off-by: Manuel QuiƱones Acked-by: Simon Schampijer --- diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em index f338bc9..9059b49 100644 --- a/gtk3/theme/gtk-widgets.css.em +++ b/gtk3/theme/gtk-widgets.css.em @@ -419,7 +419,7 @@ SugarPaletteWindow SugarGroupBox *:insensitive { -GtkMenu-horizontal-offset : 0; -GtkMenu-vertical-offset : 0; - padding: 0px; + padding: 0px 0px $(subcell_size)px 0px; border-width: 2px; border-color: @button_grey; border-style: solid; @@ -437,6 +437,23 @@ SugarPaletteWindow SugarGroupBox *:insensitive { background-color: @button_grey; } +.menuitem.separator { + padding: $(subcell_size)px 0px; + color: @button_grey; +} + +SugarPaletteHeader.menuitem { + padding: 0px $((subcell_size * 3 - font_height) / 2)px; +} + +SugarPaletteHeader.menuitem:prelight { + background-color: @black; +} + +SugarPaletteHeaderSeparator.menuitem.separator { + padding: 0px 0px $(subcell_size)px 0px; +} + .tooltip { background-color: @black; border-style: solid; -- cgit v0.9.1