[meld] linkmap: Use alpha value for chunk highlight from theme
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] linkmap: Use alpha value for chunk highlight from theme
- Date: Thu, 2 Oct 2014 20:37:54 +0000 (UTC)
commit ff4024ec26d57c8efa6372df0a2c5997ef81e006
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Aug 10 09:05:31 2014 +1000
linkmap: Use alpha value for chunk highlight from theme
meld/linkmap.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/meld/linkmap.py b/meld/linkmap.py
index ede7e58..56fad3d 100644
--- a/meld/linkmap.py
+++ b/meld/linkmap.py
@@ -112,9 +112,8 @@ class LinkMap(Gtk.DrawingArea):
chunk_idx = self.filediff.linediffer.locate_chunk(left, c[1])[0]
if chunk_idx == self.filediff.cursor.chunk:
- h = self.fill_colors['current-chunk-highlight']
- context.set_source_rgba(
- h.red, h.green, h.blue, 0.5)
+ highlight = self.fill_colors['current-chunk-highlight']
+ context.set_source_rgba(*highlight)
context.fill_preserve()
context.set_source_rgba(*self.line_colors[c[0]])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]