Ticket #3389: 0001-Make-GTK3-entries-look-identical-to-GTK2.patch

File 0001-Make-GTK3-entries-look-identical-to-GTK2.patch, 2.0 KB (added by garnacho, 12 years ago)

patch, improve theming of entries in all relevant states

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

    From f80647c23c722496ea1f69d04efaa7a0219d4f43 Mon Sep 17 00:00:00 2001
    From: Carlos Garnacho <carlos@lanedo.com>
    Date: Mon, 14 May 2012 16:22:47 +0200
    Subject: [PATCH] Make GTK3 entries look identical to GTK2
    
    The border color has been tweaked, as well as coloring in the
    combination of selected and focused states. Progressbars in
    entries now get the same color for all relevant states.
    
    http://bugs.sugarlabs.org/ticket/3389
    
    Signed-off-by: Carlos Garnacho <carlos@lanedo.com>
    ---
     gtk3/theme/gtk-widgets.css.em |   15 +++++++++++----
     1 file changed, 11 insertions(+), 4 deletions(-)
    
    diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
    index 2ff8e48..b0334ee 100644
    a b GtkToggleButton.button:active GtkLabel { 
    225225.entry {
    226226    border-radius: $(2 * subcell_size)px;
    227227    border-width: $(thickness)px;
    228     border-color: @selection_grey;
     228    border-color: @text_field_grey;
    229229    border-style: solid;
    230230    background-color: @text_field_grey;
    231231    color: @black;
    GtkToggleButton.button:active GtkLabel { 
    234234    padding: $(2 * max(my_ceil((3*subcell_size - font_height - entry_ythickness*2)/2.0),0))px $(2 * max(subcell_size - entry_xthickness, 0))px $(2 * max(my_floor((3*subcell_size - font_height - entry_ythickness*2)/2.0), 0))px $(2 * max(subcell_size - entry_xthickness, 0))px;
    235235}
    236236
    237 .entry.progressbar {
     237.entry.progressbar,
     238.entry.progressbar:focused {
    238239    border-radius: $(2 * subcell_size)px;
    239     border-width: $(thickness)px;
     240    border-width: 0px;
     241    margin: $(thickness)px;
    240242    background-color: @selection_grey;
    241243}
    242244
    GtkToggleButton.button:active GtkLabel { 
    253255    color: @black;
    254256}
    255257
    256 .entry:selected, .entry:selected:focused,
     258.entry:selected {
     259    background-color: @white;
     260    color: @black;
     261}
     262
     263.entry:selected:focused,
    257264.view:selected:focused {
    258265    background-color: @selection_grey;
    259266    color: @black;