summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Niklaus <marex@opencompositing.org>2008-03-07 23:11:29 +0100
committerPatrick Niklaus <marex@opencompositing.org>2008-03-07 23:11:29 +0100
commit960844826e05eca2617090e3fc7e50e27b0546b5 (patch)
treead4a1388a669d11c577b30eec18764db561f81cc
parent05e5e766419db6e2d6cf680942d0e1b80c109381 (diff)
downloadgroup-960844826e05eca2617090e3fc7e50e27b0546b5.tar.gz
group-960844826e05eca2617090e3fc7e50e27b0546b5.tar.bz2
Added bright inner outline to increase contrast
-rw-r--r--cairo.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/cairo.c b/cairo.c
index 9f3e5fd..533b4ac 100644
--- a/cairo.c
+++ b/cairo.c
@@ -608,6 +608,20 @@ groupRenderTabBarBackground(GroupSelection *group)
break;
}
+ /* draw inner outline */
+ cairo_move_to (cr, x0 + radius + 1.0, y0 + 1.0);
+ cairo_arc (cr, x1 - radius - 1.0, y0 + radius + 1.0,
+ radius, M_PI * 1.5, M_PI * 2.0);
+ cairo_arc (cr, x1 - radius - 1.0, y1 - radius - 1.0,
+ radius, 0.0, M_PI * 0.5);
+ cairo_arc (cr, x0 + radius + 1.0, y1 - radius - 1.0,
+ radius, M_PI * 0.5, M_PI);
+ cairo_arc (cr, x0 + radius + 1.0, y0 + radius + 1.0,
+ radius, M_PI, M_PI * 1.5);
+
+ cairo_set_source_rgba(cr, 1.0, 1.0, 1.0, 0.3);
+ cairo_stroke(cr);
+
cairo_restore (cr);
imageBufferToTexture (s, &layer->texture, (char*) layer->buffer,
layer->texWidth, layer->texHeight);