Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-01-06 04:06:59 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-01-06 04:06:59 (GMT)
commit425e95ea1a1f76c9dc12c4ff5d12012e9ec2705a (patch)
treeb02397ad755fcb54e2d20d40675f55e2a5878d7a
parent888b7df548a74e6d47e3c2bdf3f95d059a14c74b (diff)
remove hardcoded heights
-rw-r--r--gui/frame.py3
-rw-r--r--gui/theme.py4
-rw-r--r--pages/edit.py3
3 files changed, 2 insertions, 8 deletions
diff --git a/gui/frame.py b/gui/frame.py
index b9d0607..aa54312 100644
--- a/gui/frame.py
+++ b/gui/frame.py
@@ -66,8 +66,7 @@ class Frame(hippo.Canvas):
orientation=hippo.ORIENTATION_VERTICAL)
self.__root.append(self.__container, hippo.PACK_EXPAND)
- self.__page = hippo.CanvasBox(box_height=theme.PAGE_HEIGHT,
- background_color=theme.COLOR_PAGE.get_int(),
+ self.__page = hippo.CanvasBox(background_color=theme.COLOR_PAGE.get_int(),
border=4,
border_color=theme.COLOR_PAGE_BORDER.get_int(),
spacing=8,
diff --git a/gui/theme.py b/gui/theme.py
index 02add23..20537aa 100644
--- a/gui/theme.py
+++ b/gui/theme.py
@@ -98,10 +98,6 @@ COLOR_TAB_TEXT = COLOR_WHITE
zoom = style.zoom
-PAGE_HEIGHT = style.zoom(635) # don't ask
-TABS_HEIGHT = style.zoom(480) # 465 450
-PREVIEW_HEIGHT = style.zoom(519) # 564
-
PADDING_TAB = style.zoom(6)
DEFAULT_PADDING = style.zoom(6)
DEFAULT_SPACING = style.zoom(8)
diff --git a/pages/edit.py b/pages/edit.py
index 8e7419c..e269392 100644
--- a/pages/edit.py
+++ b/pages/edit.py
@@ -136,8 +136,7 @@ class EditInfo(Page): # TODO -> gui.Page should follow this pattern rather
Page.__init__(self, xalign=hippo.ALIGNMENT_CENTER,
orientation=hippo.ORIENTATION_VERTICAL,
padding=20,
- spacing=20,
- box_height=theme.TABS_HEIGHT)
+ spacing=20)
self.__parent = parent