Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2012-03-15 16:42:24 (GMT)
committer Simon Schampijer <simon@schampijer.de>2012-03-15 16:42:24 (GMT)
commit7464b808eb12b1df650952e3c8214acff1d1360f (patch)
treec77d08062549636135688900a12390a05a7c3ecc
parentb6f3064e9f59d401ae9e363a90dc29a40f574e6f (diff)
Mimic the behaviour and style of the sugar GTK+ 2 sub-toolbars in GTK+ 3
This patch takes care of the background color of the toolbutton when pressed and hovered. Furthermore the border radius for the highlightning when pressed is defined. There is a follow up patch in sugar-toolkit-gtk3 to make use of this. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Signed-off-by: Manuel QuiƱones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--gtk3/theme/gtk-widgets.css.em16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index c5f8ee0..8c038cb 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -470,19 +470,35 @@ GtkVSeparator, GtkHSeparator,
/* Tool buttons */
+.toolbar {
+padding: 0px;
+}
+
.toolbar GtkToolButton .button,
SugarPaletteWindowWidget GtkToolButton .button {
border-radius: $(toolbutton_padding)px;
+ padding: $(default_padding)px;
}
.toolbar GtkToolButton .button:prelight,
SugarPaletteWindowWidget GtkToolButton .button:prelight {
background-color: @black;
+ border-radius: 0px;
+ border-width: 0px;
+}
+
+.toolbar GtkToolButton .button:active,
+SugarPaletteWindowWidget GtkToolButton .button:active {
+ background-color: @black;
+ border-radius: 0px;
}
.toolbar GtkToolButton .button:active:prelight,
SugarPaletteWindowWidget GtkToolButton .button:active:prelight {
background-color: @button_grey;
+ border-radius: $(subcell_size)px;
+ border-width: $(default_padding)px;
+ border-color: transparent;
}
/* Scales */