From: Neil Date: Thu, 15 May 2014 22:10:11 +0000 (+0200) Subject: Gray out the glyphs as well X-Git-Tag: 0.1~247 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=abead158fe29ece7a0bc08b09b7427c0caf47599;p=naja.git Gray out the glyphs as well --- diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 2291400..fb0c31f 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -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