diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-07-16 12:52:15 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-07-16 12:52:28 (GMT) |
commit | 3b869ff86859a0f9365f0ce4efe95877085865e4 (patch) | |
tree | 5b1120a669b33a7f41444842674b158c051cfc8c | |
parent | bd36882e1bf079b57461849624e8b4147ce6ea64 (diff) |
Set a different grey in the background color for cards 1 and 2
-rw-r--r-- | cardtable.py | 9 | ||||
-rw-r--r-- | svgcard.py | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/cardtable.py b/cardtable.py index debbfa9..f60dc9b 100644 --- a/cardtable.py +++ b/cardtable.py @@ -124,10 +124,13 @@ class CardTable(Gtk.EventBox): if data['divided'] == '1': text1 = str(self.data.get('face1', '')) text2 = str(self.data.get('face2', '')) + background_color1 = style.Color('#4b4d4a') + background_color2 = style.Color('#636564') else: text1 = str(self.data.get('face', '')) text2 = str(self.data.get('face', '')) - + background_color1 = style.Color('#4b4d4a') + background_color2 = style.Color('#4b4d4a') x = 0 y = 0 identifier = 0 @@ -144,9 +147,13 @@ class CardTable(Gtk.EventBox): if card['ab'] == 'a': props['back_text'] = {'card_text': text1} font_name = font_name1 + props['back'] = {'fill_color': background_color1, + 'stroke_color': background_color1} elif card['ab'] == 'b': props['back_text'] = {'card_text': text2} font_name = font_name2 + props['back'] = {'fill_color': background_color2, + 'stroke_color': background_color2} card = svgcard.SvgCard( identifier, props, jpg, @@ -52,7 +52,7 @@ class SvgCard(Gtk.EventBox): default_props['back'] = {'fill_color': style.Color('#666666'), 'stroke_color': style.Color('#666666')} default_props['back_text'] = {'text_color': style.Color('#c7c8cc')} - default_props['front'] = {'fill_color': style.Color('#4c4d4f'), + default_props['front'] = {'fill_color': style.Color('#4b4d4a'), 'stroke_color': style.Color('#111111')} default_props['front_text'] = {'text_color': '#ffffff'} |