Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-07-24 17:41:56 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-07-24 17:41:56 (GMT)
commit5798ecd088f969fe36b57387cecc236f0198844b (patch)
tree3fd2f814165bedba53353c5b7a56394f47d25c8c
parent3c36f5a9db120a84d2bbde14522045910b4db5e7 (diff)
Improve visualization of selection border in a black background
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--Area.py5
1 files changed, 4 insertions, 1 deletions
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()