[gnome-nibbles] controls screen: lower heading, change font-family



commit f532a5022579bbbb0d8a132c3f84e2ffc60125bb
Author: Iulian Radu <iulian radu67 gmail com>
Date:   Sun Aug 16 15:51:19 2015 +0300

    controls screen: lower heading, change font-family

 data/nibbles.ui        |   47 ++++++++++++++++++++++++-----------------------
 src/gnome-nibbles.vala |    2 +-
 2 files changed, 25 insertions(+), 24 deletions(-)
---
diff --git a/data/nibbles.ui b/data/nibbles.ui
index ffa61d5..d8cbd4c 100644
--- a/data/nibbles.ui
+++ b/data/nibbles.ui
@@ -260,28 +260,29 @@
                             <object class="GtkBox">
                                 <property name="visible">True</property>
                                 <property name="orientation">vertical</property>
-                                <property name="width-request">350</property>
-                                <property name="height-request">350</property>
-                                <child>
-                                    <object class="GtkLabel">
-                                        <property name="visible">True</property>
-                                        <property name="label" translatable="yes">Controls</property>
-                                        <property name="valign">3</property>
-                                        <style><class name="menu-title"/></style>
-                                    </object>
-                                    <packing>
-                                        <property name="pack-type">start</property>
-                                    </packing>
-                                </child>
+                                <property name="valign">center</property>
                                 <child>
-                                    <object class="GtkBox" id="grids_box">
+                                    <object class="GtkBox">
                                         <property name="visible">True</property>
-                                        <property name="orientation">horizontal</property>
-                                        <property name="homogeneous">True</property>
+                                        <property name="orientation">vertical</property>
+                                        <property name="spacing">25</property>
+                                        <child>
+                                            <object class="GtkLabel">
+                                                <property name="visible">True</property>
+                                                <property name="label" translatable="yes">Controls</property>
+                                                <property name="valign">center</property>
+                                                <style><class name="menu-title"/></style>
+                                            </object>
+                                        </child>
+                                        <child>
+                                            <object class="GtkBox" id="grids_box">
+                                                <property name="visible">True</property>
+                                                <property name="orientation">horizontal</property>
+                                                <property name="homogeneous">True</property>
+                                                <property name="valign">center</property>
+                                            </object>
+                                        </child>
                                     </object>
-                                    <packing>
-                                        <property name="pack-type">start</property>
-                                    </packing>
                                 </child>
                                 <child>
                                     <object class="GtkButton">
@@ -289,10 +290,10 @@
                                         <property name="use-underline">True</property>
                                         <property name="label" translatable="yes">_Start</property>
                                         <property name="action-name">app.start-game</property>
-                                        <property name="halign">3</property>
-                                        <property name="valign">3</property>
-                                        <property name="width-request">140</property>
-                                        <property name="height-request">40</property>
+                                        <property name="halign">center</property>
+                                        <property name="valign">center</property>
+                                        <property name="width-request">116</property>
+                                        <property name="height-request">34</property>
                                         <style>
                                             <class name="suggested-action"/>
                                             <class name="play"/>
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index c5ebf86..e7055e1 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -860,7 +860,7 @@ public class ControlsGrid : Gtk.Grid
         var color = Pango.Color ();
         color.parse (NibblesView.colorval_name (worm_props.color));
 
-        name_label.set_markup (@"<b><span color=\"$(color.to_string ())\">Player $(worm_id + 1)</span></b>");
+        name_label.set_markup (@"<b><span font-family=\"Sans\" color=\"$(color.to_string ())\">Player 
$(worm_id + 1)</span></b>");
 
         arrow_up.set_from_pixbuf (arrow.rotate_simple (Gdk.PixbufRotation.NONE));
         arrow_down.set_from_pixbuf (arrow.rotate_simple (Gdk.PixbufRotation.UPSIDEDOWN));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]