diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-07-24 17:41:56 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-07-24 17:41:56 (GMT) |
commit | 5798ecd088f969fe36b57387cecc236f0198844b (patch) | |
tree | 3fd2f814165bedba53353c5b7a56394f47d25c8c | |
parent | 3c36f5a9db120a84d2bbde14522045910b4db5e7 (diff) |
Improve visualization of selection border in a black background
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | Area.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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() |