From 277dbc755e32030d1aa767a3dd343a4d57476619 Mon Sep 17 00:00:00 2001
From: Carlos Garnacho <carlosg@gnome.org>
Date: Fri, 11 May 2012 14:18:38 +0200
Subject: [PATCH] Improve theming of toggle buttons in toolbars
Fixes http://bugs.sugarlabs.org/ticket/3387 and
http://bugs.sugarlabs.org/ticket/3590. Handling of togglebuttons
and radiobuttons in toolbars has been unified and improved
---
gtk3/theme/gtk-widgets.css.em | 24 ++++++++----------------
1 file changed, 8 insertions(+), 16 deletions(-)
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index efbf638..2ff8e48 100644
a
|
b
|
GtkComboBox .separator { |
270 | 270 | color: alpha(@theme_base_color, 0.0); |
271 | 271 | } |
272 | 272 | |
273 | | .toolbar GtkToggleButton.button:active, |
274 | | SugarPaletteWindowWidget GtkToggleButton.button:active { |
275 | | background-color: @button_grey; |
276 | | } |
277 | | |
278 | 273 | /* Notebooks */ |
279 | 274 | |
280 | 275 | .notebook { |
… |
… |
GtkVSeparator, GtkHSeparator, |
481 | 476 | /* Tool buttons */ |
482 | 477 | |
483 | 478 | .toolbar { |
484 | | padding: 0px; |
| 479 | padding: 0px; |
485 | 480 | } |
486 | 481 | |
487 | 482 | .toolbar GtkToolButton .button, |
| 483 | SugarPaletteWindowWidget SugarRadioToolButton *, |
488 | 484 | SugarPaletteWindowWidget GtkToolButton .button { |
| 485 | background-color: transparent; |
489 | 486 | border-radius: $(toolbutton_padding)px; |
490 | 487 | padding: $(default_padding)px; |
491 | 488 | } |
… |
… |
SugarPaletteWindowWidget GtkToolButton .button { |
493 | 490 | .toolbar GtkToolButton .button:prelight, |
494 | 491 | SugarPaletteWindowWidget GtkToolButton .button:prelight { |
495 | 492 | background-color: @black; |
496 | | border-radius: 0px; |
497 | | border-width: 0px; |
498 | 493 | } |
499 | 494 | |
500 | | .toolbar GtkToolButton .button:active, |
501 | | SugarPaletteWindowWidget GtkToolButton .button:active { |
502 | | background-color: @black; |
| 495 | SugarPaletteWindowWidget SugarRadioToolButton *:prelight { |
503 | 496 | border-radius: 0px; |
| 497 | background-color: @button_grey; |
504 | 498 | } |
505 | 499 | |
506 | | .toolbar GtkToolButton .button:active:prelight, |
507 | | SugarPaletteWindowWidget GtkToolButton .button:active:prelight { |
| 500 | .toolbar GtkToolButton .button:active, |
| 501 | SugarPaletteWindowWidget SugarRadioToolButton *:active, |
| 502 | SugarPaletteWindowWidget GtkToolButton .button:active { |
508 | 503 | background-color: @button_grey; |
509 | | border-radius: $(subcell_size)px; |
510 | | border-width: $(default_padding)px; |
511 | | border-color: transparent; |
512 | 504 | } |
513 | 505 | |
514 | 506 | /* Scales */ |