From abead158fe29ece7a0bc08b09b7427c0caf47599 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 16 May 2014 00:10:11 +0200 Subject: [PATCH] Gray out the glyphs as well --- naja/widgets/text.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.34.1