Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-09-30 14:45:05 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-09-30 14:45:05 (GMT)
commit5fb901a628adda94cb8e18cc214b59ef0ad104a4 (patch)
tree3c7f20b28c7d1ed178e3b03f13a570d773536f83
parent1db591247d6c6edcec1ab62fb3d5009d71e35f29 (diff)
Change margin to allow bigger texts.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--activity.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/activity.py b/activity.py
index 5909573..90777d7 100644
--- a/activity.py
+++ b/activity.py
@@ -286,14 +286,16 @@ class InformationBox(Gtk.EventBox):
roundbox.props.margin = style.GRID_CELL_SIZE
vbox = Gtk.VBox()
- vbox.props.margin = style.GRID_CELL_SIZE * 2
+ vbox.props.margin = style.GRID_CELL_SIZE * 1.5
if style.zoom(100) == 100:
# xo
self._font_size = 12
+ text_changer_vertical = 3
else:
# desktop
self._font_size = 25
+ text_changer_vertical = 3.5
self._order = 0
self._text = text
@@ -325,7 +327,7 @@ class InformationBox(Gtk.EventBox):
text_changer.props.halign = Gtk.Align.CENTER
text_changer.props.valign = Gtk.Align.START
text_changer.props.margin_top = self._height - \
- (style.GRID_CELL_SIZE * 3.5)
+ (style.GRID_CELL_SIZE * text_changer_vertical)
overlay.add_overlay(text_changer)
icon = EventIcon(icon_name='globe', xo_color=self._xo_color)