Gray out the glyphs as well
authorNeil <neil@dip.sun.ac.za>
Thu, 15 May 2014 22:10:11 +0000 (00:10 +0200)
committerNeil <neil@dip.sun.ac.za>
Thu, 15 May 2014 22:10:11 +0000 (00:10 +0200)
naja/widgets/text.py

index 22914009f3a49fef75db2c115f7d59ada839d4b3..fb0c31fd507e3ba3843c7b464c7f052c4b4e566d 100644 (file)
@@ -2,7 +2,7 @@ import pygame
 
 from naja.constants import FONT, FONT_SIZE, EIGHT_BIT_SCALE
 from naja.resources import resources
-from naja.resources.mutators import EIGHT_BIT
+from naja.resources.mutators import EIGHT_BIT, blender
 from naja.utils import convert_colour
 from naja.widgets.base import Widget
 
@@ -91,7 +91,8 @@ class TextBoxWidget(TextWidget):
                                size[1] * line_count * EIGHT_BIT_SCALE)
                         pos = (pos[0] + self.padding, pos[1] + self.padding)
                         image_map[pos] = resources.get_image(
-                            markup_data[1], transforms=(EIGHT_BIT,))
+                            markup_data[1],
+                            transforms=(EIGHT_BIT, blender(self.colour)))
                         continue
                 else:
                     line_count += 1