Ticket #3879: 0001-Style-general-menus-and-the-Sugar-palette-menus-SL-3.patch

File 0001-Style-general-menus-and-the-Sugar-palette-menus-SL-3.patch, 1.9 KB (added by manuq, 8 years ago)

Artwork part of the fix.

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

    From 39f27637691319db77dc37c34f51f5c0c166d4e9 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Thu, 13 Sep 2012 00:55:47 -0300
    Subject: [PATCH sugar-artwork] Style general menus and the Sugar palette
     menus - SL #3879
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    - 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 look an informational header instead.
    
    - Add exception for the first separator in the Sugar palette.
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     gtk3/theme/gtk-widgets.css.em | 19 ++++++++++++++++++-
     1 file changed, 18 insertions(+), 1 deletion(-)
    
    diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
    index f338bc9..9059b49 100644
    a b SugarPaletteWindow SugarGroupBox *:insensitive { 
    419419    -GtkMenu-horizontal-offset : 0;
    420420    -GtkMenu-vertical-offset   : 0;
    421421
    422     padding: 0px;
     422    padding: 0px 0px $(subcell_size)px 0px;
    423423    border-width: 2px;
    424424    border-color: @button_grey;
    425425    border-style: solid;
    SugarPaletteWindow SugarGroupBox *:insensitive { 
    437437    background-color: @button_grey;
    438438}
    439439
     440.menuitem.separator {
     441    padding: $(subcell_size)px 0px;
     442    color: @button_grey;
     443}
     444
     445SugarPaletteHeader.menuitem {
     446    padding: 0px $((subcell_size * 3 - font_height) / 2)px;
     447}
     448
     449SugarPaletteHeader.menuitem:prelight {
     450    background-color: @black;
     451}
     452
     453SugarPaletteHeaderSeparator.menuitem.separator {
     454    padding: 0px 0px $(subcell_size)px 0px;
     455}
     456
    440457.tooltip {
    441458    background-color: @black;
    442459    border-style: solid;