summaryrefslogtreecommitdiff
path: root/grc/gui/Block.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2015-04-02 19:27:38 +0200
committerSebastian Koslowski <koslowski@kit.edu>2015-04-03 22:17:59 +0200
commitad0eb4512d6cc4a5f35c8ac9117aa6ee71fee1cf (patch)
tree86c5f941d5ea9e512ba2c2bb9da9c3fe195d3488 /grc/gui/Block.py
parent63e66a352e773557258fd6159363eb08c1fd1355 (diff)
grc: hide comment for disabled blocks; add colored background
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r--grc/gui/Block.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index 5d3ae457da..60f19fc1a4 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -217,14 +217,13 @@ class Block(Element):
width, height = layout.get_pixel_size()
pixmap = self.get_parent().new_pixmap(width, height)
gc = pixmap.new_gc()
- gc.set_foreground(Colors.FLOWGRAPH_BACKGROUND_COLOR)
+ gc.set_foreground(Colors.COMMENT_BACKGROUND_COLOR)
pixmap.draw_rectangle(gc, True, 0, 0, width, height)
pixmap.draw_layout(gc, 0, 0, layout)
self._comment_pixmap = pixmap
else:
self._comment_pixmap = None
-
def draw(self, gc, window):
"""
Draw the signal block with label and inputs/outputs.