Ticket #3983: 0001-GtkSlider-use-.slider-CSS-class-and-remove-harcoded-.patch

File 0001-GtkSlider-use-.slider-CSS-class-and-remove-harcoded-.patch, 2.2 KB (added by manuq, 11 years ago)
  • gtk3/theme/gtk-widgets.css.em

    From a8729864388983331e49cbad5e0036c6de25ea86 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Tue, 9 Oct 2012 21:15:58 -0300
    Subject: [PATCH artwork 1/4] GtkSlider: use .slider CSS class and remove
     harcoded numbers
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     gtk3/theme/gtk-widgets.css.em | 26 ++++++++++++++------------
     1 file changed, 14 insertions(+), 12 deletions(-)
    
    diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
    index 7eb159e..862c726 100644
    a b icon_large = icon_base * 5 
    6767    -GtkWidget-focus-line-width: 0;  /* Prevents some drawing glitches */
    6868    -GtkEntry-focus-line-width: 0;
    6969    -GtkScale-focus-line-width: 0;
    70     -GtkScale-focus-line-width: 0;
    7170    -GtkWidget-focus-padding: 0;
    7271    /* 0.05 works good for both the sugar and sugar-xo themes */
    7372    -GtkWidget-cursor-aspect-ratio: 0.05;
    SugarPaletteWindowWidget GtkScrolledWindow * { 
    570569
    571570/* Scales */
    572571
    573 GtkScale {
     572.scale {
    574573    -GtkScale-slider-length: $scale_slider_width;
    575574    -GtkRange-slider-width: $scale_slider_width;
    576575}
    577576
    578 GtkScale.trough {
     577.scale.trough {
    579578    background-color: @button_grey;
    580579    border-style: solid;
    581     border-radius: 30px;
     580    border-radius: $(2*subcell_size)px;
    582581    border-color: @button_grey;
    583     border-width: 2px;
     582    border-width: $(thickness)px;
    584583}
    585584
    586 GtkScale.trough:focused {
     585.scale.trough:focused {
    587586    border-color: @white;
    588587}
    589588
    590 GtkScale.trough.top, GtkScale.trough.left {
     589.scale.trough.top,
     590.scale.trough.left {
    591591    background-color: @white;
    592592}
    593593
    594 GtkScale.slider {
    595     color: alpha(@theme_base_color, 0.0);
    596     background-color: alpha(@theme_base_color, 0.0);
     594.scale.slider,
     595.scale.slider:active {
     596    background-color: transparent;
     597}
     598
     599.scale.slider {
    597600    background-image: url("assets/scale-slider.svg");
    598601}
    599602
    600 GtkScale.slider:active {
    601     color: alpha(@theme_base_color, 0.0);
     603.scale.slider:active {
    602604    background-image: url("assets/scale-slider-active.svg");
    603605}
    604606