From ca94b8e6eaf957b439486e4ab93725586e530e57 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Tue, 24 Jul 2012 17:41:56 +0000 Subject: Improve visualization of selection border in a black background Signed-off-by: Gonzalo Odiard --- (limited to 'Area.py') diff --git a/Area.py b/Area.py index 23cf5da..9c2acbb 100644 --- a/Area.py +++ b/Area.py @@ -244,11 +244,14 @@ class Area(gtk.DrawingArea): x, y, width, height = self.get_selection_bounds() ctx.save() ctx.set_line_width(1) + ctx.set_source_rgba(1., 1., 1., 1.) + ctx.rectangle(x, y, width, height) + ctx.stroke_preserve() + ctx.set_line_cap(cairo.LINE_CAP_ROUND) ctx.set_line_join(cairo.LINE_JOIN_ROUND) ctx.set_dash([5, 5], 0) ctx.set_source_rgba(0., 0., 0., 1.) - ctx.rectangle(x, y, width, height) ctx.stroke() ctx.restore() -- cgit v0.9.1