From 977e7b46ee672d2d33429b8c57ad3dfeaac3037b Mon Sep 17 00:00:00 2001 From: portnov Date: Sat, 30 Aug 2008 21:54:09 +0600 Subject: [PATCH] Bugfix. Set proper font color for keys. --- qwerty.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/qwerty.py b/qwerty.py index c3f7ac8..a59bbd7 100755 --- a/qwerty.py +++ b/qwerty.py @@ -177,13 +177,14 @@ class SuperButton(gtk.DrawingArea): self.draw_button(cr) - if self.active: - cr.set_source_rgb(*BUTTON_BORDER_ACTIVE) - if self.icon: self.draw_icon(cr) # Draw key + if self.active: + cr.set_source_rgb(*BUTTON_BORDER_ACTIVE) + else: + cr.set_source_rgb(*BUTTON_BORDER) cr.move_to(LABEL_LEFT, self.height-KEY_BOTTOM) cr.set_font_size(KEY_FONT_SIZE) cr.show_text(self.key) -- 1.7.2.3