Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-10-07 21:09:17 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-10-07 21:09:17 (GMT)
commit871d043500ecd5f853254ba7140783cd2dd547e8 (patch)
treedfa4bf6b67d94256140392891afa2831e60c7530
parentb99c1af2b3f5a0ad56fcea8cfa8a151018ae7058 (diff)
Tidy answer and answer history padding and alignment.
-rw-r--r--layout.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/layout.py b/layout.py
index ac3ba93..ba21114 100644
--- a/layout.py
+++ b/layout.py
@@ -151,7 +151,7 @@ class CalcLayout:
self.input_font = pango.FontDescription(str='sans bold 12')
self.button_font = pango.FontDescription(str='sans bold 18')
self.col_white = self.create_color(1.00, 1.00, 1.00)
- self.col_gray1 = self.create_color(0.75, 0.75, 0.75)
+ self.col_gray1 = self.create_color(0.76, 0.76, 0.76)
self.col_gray2 = self.create_color(0.50, 0.50, 0.50)
self.col_gray3 = self.create_color(0.25, 0.25, 0.25)
self.col_black = self.create_color(0.00, 0.00, 0.00)
@@ -159,9 +159,9 @@ class CalcLayout:
# Big - Table, 16 rows, 10 columns, homogeneously divided
self.grid = gtk.Table(16, 11, True)
- self.grid.set_border_width(0)
+ self.grid.set_border_width(3)
self.grid.set_row_spacings(0)
- self.grid.set_col_spacings(0)
+ self.grid.set_col_spacings(6)
# Left part: container and input
hc1 = gtk.HBox(False, 10)
@@ -233,6 +233,8 @@ class CalcLayout:
self.last_eq.set_editable(False)
self.last_eq.set_wrap_mode(gtk.WRAP_WORD)
self.last_eq.connect('realize', self._textview_realize_cb)
+ self.last_eq.set_border_width(2)
+ self.last_eq.modify_bg(gtk.STATE_NORMAL, self.col_gray1)
self.grid.attach(self.last_eq, 6, 11, 1, 5)
# Right part: history
@@ -241,12 +243,12 @@ class CalcLayout:
self.history_vbox = gtk.VBox()
self.history_vbox.set_homogeneous(False)
- self.history_vbox.set_border_width(6)
+ self.history_vbox.set_border_width(0)
self.history_vbox.set_spacing(4)
self.variable_vbox = gtk.VBox()
self.variable_vbox.set_homogeneous(False)
- self.variable_vbox.set_border_width(6)
+ self.variable_vbox.set_border_width(0)
self.variable_vbox.set_spacing(4)
vbox = gtk.VBox()