]> www.fi.muni.cz Git - slotcarman.git/commitdiff
Visual side tweaking
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 4 Dec 2010 02:08:10 +0000 (03:08 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 4 Dec 2010 02:08:10 +0000 (03:08 +0100)
SCX/GUI.pm
slotcarman.glade

index a0fd69122f6a36a7521020bdac13268f2fc1ab56..813d111fa73274e56a2f6ac8aa7cfe0e9adaca03 100755 (executable)
@@ -123,7 +123,7 @@ sub set_lap {
        ++$row;
        my $label = $self->get_object("label_lap$row")
                or die "Can't get label_lap$row";
-       $label->set_label($text);
+       $label->set_markup('<span font_desc="24" weight="bold">'.$text.'</span>');
 }
 
 sub set_laptime {
@@ -132,7 +132,7 @@ sub set_laptime {
        ++$row;
        my $label = $self->get_object("label_laptime$row")
                or die "Can't get label_laptime$row";
-       $label->set_label($text);
+       $label->set_markup('<span font_desc="18" weight="bold">'.$text.'</span>');
 }
 
 sub set_best_lap {
@@ -141,7 +141,7 @@ sub set_best_lap {
        ++$row;
        my $label = $self->get_object("label_best_lap$row")
                or die "Can't get label_best_lap$row";
-       $label->set_label($text);
+       $label->set_markup('<span font_desc="18" weight="bold">'.$text.'</span>');
 }
 
 sub set_driver {
@@ -150,7 +150,7 @@ sub set_driver {
        ++$row;
        my $label = $self->get_object("label_name$row")
                or die "Can't get label_lap$row";
-       $label->set_label($text);
+       $label->set_markup('<span font_desc="18" weight="bold">'.$text.'</span>');
 }
 
 1;
index 1bd3738ed3fba1667a5576aa926254a10f4f47e5..aa67219dc5f835a7d0340cf466ed4f9d5190d6fa 100644 (file)
               <object class="GtkLabel" id="label_lap1">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="use_markup">True</property>
                 <property name="justify">right</property>
-                <property name="width_chars">4</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">3</property>
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
                 <property name="justify">right</property>
-                <property name="width_chars">4</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">3</property>
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
                 <property name="justify">right</property>
-                <property name="width_chars">4</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">3</property>
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
                 <property name="justify">right</property>
-                <property name="width_chars">4</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">3</property>
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
                 <property name="justify">right</property>
-                <property name="width_chars">4</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">3</property>
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
                 <property name="justify">right</property>
-                <property name="width_chars">4</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">3</property>
               <object class="GtkLabel" id="label_laptime1">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">4</property>
               <object class="GtkLabel" id="label_laptime2">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">4</property>
               <object class="GtkLabel" id="label_laptime3">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">4</property>
               <object class="GtkLabel" id="label_laptime4">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">4</property>
               <object class="GtkLabel" id="label_laptime5">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">4</property>
               <object class="GtkLabel" id="label_laptime6">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">4</property>
               <object class="GtkLabel" id="label_best_lap1">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
-                <property name="width_chars">7</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">5</property>
               <object class="GtkLabel" id="label_best_lap2">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">5</property>
               <object class="GtkLabel" id="label_best_lap3">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">5</property>
               <object class="GtkLabel" id="label_best_lap4">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">5</property>
               <object class="GtkLabel" id="label_best_lap5">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">5</property>
               <object class="GtkLabel" id="label_best_lap6">
                 <property name="visible">True</property>
                 <property name="label" translatable="yes">label</property>
+                <property name="justify">right</property>
+                <property name="width_chars">12</property>
               </object>
               <packing>
                 <property name="left_attach">5</property>