[gnome-themes-standard/wip/jimmac/updated-gtk2: 99/106] Draw a solid frame instead of a gradient when in fallback.
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard/wip/jimmac/updated-gtk2: 99/106] Draw a solid frame instead of a gradient when in fallback.
- Date: Thu, 3 Mar 2016 22:25:27 +0000 (UTC)
commit dfb2ab40769d9d756e6c273f291911a11bcc6c62
Author: Juraj Fiala <doctorjellyface riseup net>
Date: Tue Mar 1 20:32:52 2016 +0100
Draw a solid frame instead of a gradient when in fallback.
themes/Adwaita/gtk-2.0/adwaita_engine.c | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/themes/Adwaita/gtk-2.0/adwaita_engine.c b/themes/Adwaita/gtk-2.0/adwaita_engine.c
index 79e3b3f..3903402 100644
--- a/themes/Adwaita/gtk-2.0/adwaita_engine.c
+++ b/themes/Adwaita/gtk-2.0/adwaita_engine.c
@@ -118,26 +118,11 @@ adwaita_draw_box (GtkStyle * style,
wm_is_fallback ())
{
cairo_t *cr = drawable_to_cairo (window, area);
- cairo_pattern_t *pattern = cairo_pattern_create_linear (x, y, x, y + height);
- gdouble stop_1, stop_2, stop_3;
-
- stop_1 = MIN (1.0, 6.0 / (gdouble) height);
- stop_2 = MAX (stop_1, 0.33);
- stop_3 = MAX (stop_2, 0.66);
-
- cairo_pattern_add_color_stop_rgba (pattern, 0.0, 0.66, 0.66, 0.66, 0.0);
- cairo_pattern_add_color_stop_rgba (pattern, stop_1, 0.66, 0.66, 0.66, 0.25);
- cairo_pattern_add_color_stop_rgba (pattern, stop_2, 0.66, 0.66, 0.66, 0.80);
- cairo_pattern_add_color_stop_rgba (pattern, stop_3, 0.66, 0.66, 0.66, 1.0);
- cairo_pattern_add_color_stop_rgba (pattern, 1.0, 0.66, 0.66, 0.66, 1.0);
- cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
-
- cairo_set_source (cr, pattern);
+ cairo_set_source_rgb (cr, 0.34, 0.34, 0.33);
cairo_rectangle (cr, x, y, width, height);
cairo_stroke (cr);
cairo_destroy (cr);
- cairo_pattern_destroy (pattern);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]