Ticket #3387: 0001-Fix-artifacts-in-share-button-SL-3387.patch

File 0001-Fix-artifacts-in-share-button-SL-3387.patch, 2.3 KB (added by erikos, 12 years ago)

Patch to fix the artifacts in teh share button

  • gtk3/theme/gtk-widgets.css.em

    From 915504a837bd5db1b4a0b572f3dbaede950274da Mon Sep 17 00:00:00 2001
    From: Simon Schampijer <simon@schampijer.de>
    Date: Mon, 21 May 2012 16:38:56 +0200
    Subject: [PATCH] Fix artifacts in share button, SL #3387
    
    When the SugarRadioToolButton is active make
    the background color button_grey and the
    GtkToolButton background color transparent, this was
    set to white before. Rounding the edges of the
    background of the SugarRadioToolButton.
    
    Signed-off-by: Simon Schampijer <simon@laptop.org>
    ---
     gtk3/theme/gtk-widgets.css.em |   27 +++++++++++----------------
     1 file changed, 11 insertions(+), 16 deletions(-)
    
    diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
    index fe5ff75..9671e29 100644
    a b GtkComboBox .separator { 
    270270    color: alpha(@theme_base_color, 0.0);
    271271}
    272272
    273 .toolbar GtkToggleButton.button:active,
    274 SugarPaletteWindowWidget GtkToggleButton.button:active {
    275     background-color: @button_grey;
    276 }
    277 
    278273/* Notebooks */
    279274
    280275.notebook {
    padding: 0px; 
    504499}
    505500
    506501.toolbar GtkToolButton .button,
    507 SugarPaletteWindowWidget GtkToolButton .button {
     502SugarPaletteWindowWidget SugarRadioToolButton *,
     503SugarPaletteWindowWidget GtkToolButton .button{
     504    background-color: transparent;
    508505    border-radius: $(toolbutton_padding)px;
    509506    padding: $(default_padding)px;
    510507}
    SugarPaletteWindowWidget GtkToolButton .button { 
    512509.toolbar GtkToolButton .button:prelight,
    513510SugarPaletteWindowWidget GtkToolButton .button:prelight {
    514511    background-color: @black;
    515     border-radius: 0px;
    516     border-width: 0px;
    517512}
    518513
    519 .toolbar GtkToolButton .button:active,
     514SugarPaletteWindowWidget SugarRadioToolButton *:active {
     515    background-color: @button_grey;
     516    border-radius: $(toolbutton_padding)px;
     517}
     518
    520519SugarPaletteWindowWidget GtkToolButton .button:active {
    521     background-color: @black;
    522     border-radius: 0px;
     520    background-color: @transparent;
    523521}
    524522
    525 .toolbar GtkToolButton .button:active:prelight,
    526 SugarPaletteWindowWidget GtkToolButton .button:active:prelight {
     523.toolbar GtkToolButton .button:active {
    527524    background-color: @button_grey;
    528     border-radius: $(subcell_size)px;
    529     border-width: $(default_padding)px;
    530     border-color: transparent;
     525    border-radius: $(toolbutton_padding)px;
    531526}
    532527
    533528/* Scales */