murrine r133 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r133 - in trunk: . src
- Date: Thu, 22 Jan 2009 09:00:30 +0000 (UTC)
Author: acimitan
Date: Thu Jan 22 09:00:30 2009
New Revision: 133
URL: http://svn.gnome.org/viewvc/murrine?rev=133&view=rev
Log:
2009-01-22 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_draw.c (murrine_draw_button):
* src/murrine_draw_rgba.c (murrine_rgba_draw_button):
Automatically reduce glow_shade on disabled buttons.
Modified:
trunk/ChangeLog
trunk/src/murrine_draw.c
trunk/src/murrine_draw_rgba.c
Modified: trunk/src/murrine_draw.c
==============================================================================
--- trunk/src/murrine_draw.c (original)
+++ trunk/src/murrine_draw.c Thu Jan 22 09:00:30 2009
@@ -149,6 +149,7 @@
{
double xos = widget->xthickness > 2 ? 1 : 0;
double yos = widget->ythickness > 2 ? 1 : 0;
+ double glow_shade_custom = widget->glow_shade;
double highlight_shade_custom = widget->highlight_shade;
double lightborder_shade_custom = widget->lightborder_shade;
MurrineRGB fill = colors->bg[widget->state_type];
@@ -158,6 +159,7 @@
if (widget->disabled)
{
mrn_gradient_custom = get_decreased_gradient_shades (widget->mrn_gradient, 3.0);
+ glow_shade_custom = get_decreased_shade (widget->glow_shade, 2.0);
highlight_shade_custom = get_decreased_shade (widget->highlight_shade, 2.0);
lightborder_shade_custom = get_decreased_shade (widget->lightborder_shade, 2.0);
}
@@ -195,7 +197,7 @@
cairo_clip_preserve (cr);
murrine_draw_glaze (cr, &fill,
- widget->glow_shade, highlight_shade_custom, !widget->active ? lightborder_shade_custom : 1.0,
+ glow_shade_custom, highlight_shade_custom, !widget->active ? lightborder_shade_custom : 1.0,
mrn_gradient_custom, widget,
xos+1, yos+1, width-(xos*2)-2, height-(yos*2)-2,
widget->roundness, widget->corners, horizontal);
Modified: trunk/src/murrine_draw_rgba.c
==============================================================================
--- trunk/src/murrine_draw_rgba.c (original)
+++ trunk/src/murrine_draw_rgba.c Thu Jan 22 09:00:30 2009
@@ -147,6 +147,7 @@
{
double xos = widget->xthickness > 2 ? 1 : 0;
double yos = widget->ythickness > 2 ? 1 : 0;
+ double glow_shade_custom = widget->glow_shade;
double highlight_shade_custom = widget->highlight_shade;
double lightborder_shade_custom = widget->lightborder_shade;
MurrineRGB fill = colors->bg[widget->state_type];
@@ -156,6 +157,7 @@
if (widget->disabled)
{
mrn_gradient_custom = get_decreased_gradient_shades (widget->mrn_gradient, 3.0);
+ glow_shade_custom = get_decreased_shade (widget->glow_shade, 2.0);
highlight_shade_custom = get_decreased_shade (widget->highlight_shade, 2.0);
lightborder_shade_custom = get_decreased_shade (widget->lightborder_shade, 2.0);
}
@@ -196,7 +198,7 @@
cairo_clip_preserve (cr);
murrine_draw_glaze (cr, &fill,
- widget->glow_shade, highlight_shade_custom, !widget->active ? lightborder_shade_custom : 1.0,
+ glow_shade_custom, highlight_shade_custom, !widget->active ? lightborder_shade_custom : 1.0,
mrn_gradient_custom, widget, xos+1, yos+1, width-(xos*2)-2, height-(yos*2)-2,
widget->roundness, widget->corners, horizontal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]