Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/TextThought.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2008-12-20 02:06:25 (GMT)
committer Gary Martin <gary@garycmartin.com>2008-12-20 02:06:25 (GMT)
commita4f7e374c4bcc32c106fe640937021c98c217445 (patch)
tree921a063a0b9cb224d3fb4a4d72dfda750ed7d663 /src/TextThought.py
parentb7a8aacf356533618e26ae2fadf3041ec018f21c (diff)
Use users XO colours for the primary thought.
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index de7817b..6d363f2 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -336,7 +336,9 @@ class TextThought (BaseThought.BaseThought):
context.stroke ()
(textx, texty) = (self.text_location[0], self.text_location[1])
- if (self.foreground_color):
+ if self.am_primary:
+ r, g, b = utils.primary_colors["text"]
+ elif (self.foreground_color):
r, g, b = utils.gtk_to_cairo_color(self.foreground_color)
else:
r, g ,b = utils.gtk_to_cairo_color(utils.default_colors["text"])