[gnome-clocks] Tweak some of the sizing
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Tweak some of the sizing
- Date: Sat, 5 Jan 2013 13:44:20 +0000 (UTC)
commit fcbcfa749150dc0033b79fd30fd5b16a86990120
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Jan 5 14:40:41 2013 +0100
Tweak some of the sizing
Increase the default size to fit 8 world clocks exactly and use
the extra space to adjust some of the other layouts
gnomeclocks/app.py | 3 ++-
gnomeclocks/stopwatch.py | 4 ++--
gnomeclocks/widgets.py | 6 ++++--
3 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index c2e854e..a8356d8 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -51,7 +51,8 @@ class Window(Gtk.ApplicationWindow):
css_provider,
Gtk.STYLE_PROVIDER_PRIORITY_USER)
- self.set_size_request(640, 480)
+ # Default size is enough for two rows of 8 clocks
+ self.set_size_request(788, 540)
self.toolbar = Toolbar()
self.toolbar.connect("page-changed", self._on_page_changed)
diff --git a/gnomeclocks/stopwatch.py b/gnomeclocks/stopwatch.py
index 5504cde..6527c30 100644
--- a/gnomeclocks/stopwatch.py
+++ b/gnomeclocks/stopwatch.py
@@ -49,8 +49,8 @@ class Stopwatch(Clock):
self.add(vbox)
grid = Gtk.Grid()
- grid.set_margin_top(12)
- grid.set_margin_bottom(48)
+ grid.set_margin_top(36)
+ grid.set_margin_bottom(60)
grid.set_halign(Gtk.Align.CENTER)
grid.set_row_spacing(24)
grid.set_column_spacing(24)
diff --git a/gnomeclocks/widgets.py b/gnomeclocks/widgets.py
index 32e3785..61c3ddd 100644
--- a/gnomeclocks/widgets.py
+++ b/gnomeclocks/widgets.py
@@ -360,9 +360,11 @@ class SelectableIconView(Gtk.IconView):
self.selection_mode = False
self.selection_col = selection_col
- self.set_spacing(3)
self.get_style_context().add_class('content-view')
+ self.set_column_spacing(20)
+ self.set_margin(16)
+
self.icon_renderer = DigitalClockRenderer()
self.icon_renderer.set_alignment(0.5, 0.5)
self.icon_renderer.set_fixed_size(160, 160)
@@ -373,7 +375,7 @@ class SelectableIconView(Gtk.IconView):
renderer_text = Gtk.CellRendererText()
renderer_text.set_alignment(0.5, 0.5)
renderer_text.set_fixed_size(160, -1)
- renderer_text.props.wrap_width = 160
+ renderer_text.props.wrap_width = 140
renderer_text.props.wrap_mode = Pango.WrapMode.WORD_CHAR
self.pack_start(renderer_text, True)
self.add_attribute(renderer_text, "markup", text_col)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]