From 425e95ea1a1f76c9dc12c4ff5d12012e9ec2705a Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Tue, 06 Jan 2009 04:06:59 +0000 Subject: remove hardcoded heights --- 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 -- cgit v0.9.1