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 |
67 | 67 | -GtkWidget-focus-line-width: 0; /* Prevents some drawing glitches */ |
68 | 68 | -GtkEntry-focus-line-width: 0; |
69 | 69 | -GtkScale-focus-line-width: 0; |
70 | | -GtkScale-focus-line-width: 0; |
71 | 70 | -GtkWidget-focus-padding: 0; |
72 | 71 | /* 0.05 works good for both the sugar and sugar-xo themes */ |
73 | 72 | -GtkWidget-cursor-aspect-ratio: 0.05; |
… |
… |
SugarPaletteWindowWidget GtkScrolledWindow * { |
570 | 569 | |
571 | 570 | /* Scales */ |
572 | 571 | |
573 | | GtkScale { |
| 572 | .scale { |
574 | 573 | -GtkScale-slider-length: $scale_slider_width; |
575 | 574 | -GtkRange-slider-width: $scale_slider_width; |
576 | 575 | } |
577 | 576 | |
578 | | GtkScale.trough { |
| 577 | .scale.trough { |
579 | 578 | background-color: @button_grey; |
580 | 579 | border-style: solid; |
581 | | border-radius: 30px; |
| 580 | border-radius: $(2*subcell_size)px; |
582 | 581 | border-color: @button_grey; |
583 | | border-width: 2px; |
| 582 | border-width: $(thickness)px; |
584 | 583 | } |
585 | 584 | |
586 | | GtkScale.trough:focused { |
| 585 | .scale.trough:focused { |
587 | 586 | border-color: @white; |
588 | 587 | } |
589 | 588 | |
590 | | GtkScale.trough.top, GtkScale.trough.left { |
| 589 | .scale.trough.top, |
| 590 | .scale.trough.left { |
591 | 591 | background-color: @white; |
592 | 592 | } |
593 | 593 | |
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 { |
597 | 600 | background-image: url("assets/scale-slider.svg"); |
598 | 601 | } |
599 | 602 | |
600 | | GtkScale.slider:active { |
601 | | color: alpha(@theme_base_color, 0.0); |
| 603 | .scale.slider:active { |
602 | 604 | background-image: url("assets/scale-slider-active.svg"); |
603 | 605 | } |
604 | 606 | |