projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix cairo widget background
[ardour.git]
/
libs
/
clearlooks-newer
/
clearlooks_draw_gummy.c
diff --git
a/libs/clearlooks-newer/clearlooks_draw_gummy.c
b/libs/clearlooks-newer/clearlooks_draw_gummy.c
index 0d736b5acc4c0d933604e5041022ff87e7fee4c4..ca208c2ebc2e58bfb7b58ead479fdf224743741a 100644
(file)
--- a/
libs/clearlooks-newer/clearlooks_draw_gummy.c
+++ b/
libs/clearlooks-newer/clearlooks_draw_gummy.c
@@
-790,10
+790,10
@@
clearlooks_gummy_draw_separator (cairo_t *cr,
const SeparatorParameters *separator,
int x, int y, int width, int height)
{
const SeparatorParameters *separator,
int x, int y, int width, int height)
{
- (void) widget;
-
- CairoColor color = colors->shade[3];
CairoColor hilight;
CairoColor hilight;
+ CairoColor color = colors->shade[3];
+
+ (void) widget;
ge_shade_color (&color, 1.3, &hilight);
cairo_save (cr);
ge_shade_color (&color, 1.3, &hilight);
cairo_save (cr);
@@
-1162,11
+1162,14
@@
clearlooks_gummy_draw_toolbar (cairo_t *cr,
const ToolbarParameters *toolbar,
int x, int y, int width, int height)
{
const ToolbarParameters *toolbar,
int x, int y, int width, int height)
{
- (void) widget;
-
- const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
- const CairoColor *dark = &colors->shade[3];
CairoColor light;
CairoColor light;
+ const CairoColor *dark;
+ const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
+
+ (void) widget;
+
+ dark = &colors->shade[3];
+
ge_shade_color (fill, toolbar->style == 1 ? 1.1 : 1.05, &light);
cairo_set_line_width (cr, 1.0);
ge_shade_color (fill, toolbar->style == 1 ? 1.1 : 1.05, &light);
cairo_set_line_width (cr, 1.0);
@@
-1302,12
+1305,12
@@
clearlooks_gummy_draw_statusbar (cairo_t *cr,
const WidgetParameters *widget,
int x, int y, int width, int height)
{
const WidgetParameters *widget,
int x, int y, int width, int height)
{
+ CairoColor hilight;
+ const CairoColor *dark = &colors->shade[3];
+
(void) widget;
(void) height;
(void) widget;
(void) height;
- const CairoColor *dark = &colors->shade[3];
- CairoColor hilight;
-
ge_shade_color (dark, 1.3, &hilight);
cairo_set_line_width (cr, 1);
ge_shade_color (dark, 1.3, &hilight);
cairo_set_line_width (cr, 1);
@@
-1331,9
+1334,6
@@
clearlooks_gummy_draw_radiobutton (cairo_t *cr,
const CheckboxParameters *checkbox,
int x, int y, int width, int height)
{
const CheckboxParameters *checkbox,
int x, int y, int width, int height)
{
- (void) width;
- (void) height;
-
const CairoColor *border;
const CairoColor *dot;
CairoColor shadow;
const CairoColor *border;
const CairoColor *dot;
CairoColor shadow;
@@
-1342,6
+1342,9
@@
clearlooks_gummy_draw_radiobutton (cairo_t *cr,
gboolean inconsistent;
gboolean draw_bullet = (checkbox->shadow_type == GTK_SHADOW_IN);
gboolean inconsistent;
gboolean draw_bullet = (checkbox->shadow_type == GTK_SHADOW_IN);
+ (void) width;
+ (void) height;
+
inconsistent = (checkbox->shadow_type == GTK_SHADOW_ETCHED_IN);
draw_bullet |= inconsistent;
inconsistent = (checkbox->shadow_type == GTK_SHADOW_ETCHED_IN);
draw_bullet |= inconsistent;