summaryrefslogtreecommitdiff
path: root/grc/src/platforms/gui/FlowGraph.py
diff options
context:
space:
mode:
authorjblum2009-05-25 16:38:58 +0000
committerjblum2009-05-25 16:38:58 +0000
commita002886ef04400c8a719f5f5e63d7d39f06a47f2 (patch)
tree9a012ce90efc8ff93c2d7260447d61753bf4f256 /grc/src/platforms/gui/FlowGraph.py
parent017b9b15193d2278d67439bb863de6c5dc6a4989 (diff)
downloadgnuradio-a002886ef04400c8a719f5f5e63d7d39f06a47f2.tar.gz
gnuradio-a002886ef04400c8a719f5f5e63d7d39f06a47f2.tar.bz2
gnuradio-a002886ef04400c8a719f5f5e63d7d39f06a47f2.zip
color code refactoring
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11115 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms/gui/FlowGraph.py')
-rw-r--r--grc/src/platforms/gui/FlowGraph.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/src/platforms/gui/FlowGraph.py b/grc/src/platforms/gui/FlowGraph.py
index 7e2330669..40f391811 100644
--- a/grc/src/platforms/gui/FlowGraph.py
+++ b/grc/src/platforms/gui/FlowGraph.py
@@ -248,7 +248,7 @@ class FlowGraph(Element):
"""
W,H = self.get_size()
#draw the background
- gc.foreground = Colors.BACKGROUND_COLOR
+ gc.set_foreground(Colors.FLOWGRAPH_BACKGROUND_COLOR)
window.draw_rectangle(gc, True, 0, 0, W, H)
#draw multi select rectangle
if self.mouse_pressed and (not self.get_selected_elements() or self.get_ctrl_mask()):
@@ -259,9 +259,9 @@ class FlowGraph(Element):
x, y = int(min(x1, x2)), int(min(y1, y2))
w, h = int(abs(x1 - x2)), int(abs(y1 - y2))
#draw
- gc.foreground = Colors.H_COLOR
+ gc.set_foreground(Colors.HIGHLIGHT_COLOR)
window.draw_rectangle(gc, True, x, y, w, h)
- gc.foreground = Colors.TXT_COLOR
+ gc.set_foreground(Colors.BORDER_COLOR)
window.draw_rectangle(gc, False, x, y, w, h)
#draw blocks on top of connections
for element in self.get_connections() + self.get_blocks():