projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a5cd82e
)
Gray out the glyphs as well
author
Neil
<neil@dip.sun.ac.za>
Thu, 15 May 2014 22:10:11 +0000
(
00:10
+0200)
committer
Neil
<neil@dip.sun.ac.za>
Thu, 15 May 2014 22:10:11 +0000
(
00:10
+0200)
naja/widgets/text.py
patch
|
blob
|
history
diff --git
a/naja/widgets/text.py
b/naja/widgets/text.py
index 22914009f3a49fef75db2c115f7d59ada839d4b3..fb0c31fd507e3ba3843c7b464c7f052c4b4e566d 100644
(file)
--- 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.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
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(
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
continue
else:
line_count += 1