[gnome-themes-standard] scale: theme scale fill according to mockups
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] scale: theme scale fill according to mockups
- Date: Fri, 4 Mar 2011 18:38:23 +0000 (UTC)
commit 0aa0a9f127865c79430f154fe3a9752607984460
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Mar 4 13:36:58 2011 -0500
scale: theme scale fill according to mockups
src/adwaita_engine.c | 3 ++-
themes/Adwaita/gtk-3.0/gtk.css | 18 +++++++++++++++++-
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index c6ac7d3..338aac7 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -1077,7 +1077,8 @@ adwaita_engine_render_activity (GtkThemingEngine *engine,
GTK_THEMING_ENGINE_CLASS (adwaita_engine_parent_class)->render_activity (engine, cr,
x, y, width, height);
- if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_PROGRESSBAR))
+ if (gtk_widget_path_is_type (path, GTK_TYPE_PROGRESS_BAR) &&
+ gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_PROGRESSBAR))
{
cairo_pattern_t *pattern;
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 77f41c1..fc4ec0c 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -67,6 +67,9 @@
@define-color progressbar_background_b #76b0ec;
@define-color progressbar_border #3277bf;
+ define-color scale_fill_a #2c85e2;
+ define-color scale_fill_b #b8d6f5;
+
@define-color menu_fg_color #2e87e3;
@define-color menu_controls_color #555753;
@@ -251,11 +254,12 @@ GtkProgressBar.trough {
GtkScale {
-GtkScale-slider-length: 16;
-GtkRange-slider-width: 20;
+ -GtkRange-trough-border: 0;
}
GtkScale.slider {
border-width: 1;
- border-radius: 2;
+ border-radius: 3;
border-color: shade (@internal_element_color, 0.90);
background-image: -gtk-gradient (linear,
@@ -285,6 +289,18 @@ GtkScale.trough.vertical {
to (shade (@trough_bg_color_b, 1.20)));
}
+GtkScale.progressbar {
+ background-image: -gtk-gradient (linear,
+ left top, left bottom,
+ from (@scale_fill_a),
+ to (@scale_fill_b));
+
+ border-color: #1864b2;
+ border-width: 1;
+ border-radius: 3;
+ border-style: solid;
+}
+
GtkFrame,
GtkCalendar {
padding: 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]