Bugfix. Set proper font color for keys.
Bugfix. Set proper font color for keys.
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)