From: Jan "Yenya" Kasprzak Date: Sat, 7 May 2011 22:08:14 +0000 (+0200) Subject: Make GUI fit 800x600 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=slotcarman.git;a=commitdiff_plain;h=aefd056b8d72090e031eed197aca474fa998650c Make GUI fit 800x600 FIXME: There should be a better way how to do this. --- diff --git a/SCX/GUI.pm b/SCX/GUI.pm index a57c653..fbdfa70 100755 --- a/SCX/GUI.pm +++ b/SCX/GUI.pm @@ -120,7 +120,7 @@ sub set_font_sizes { if ($self->{img_height} <= 80) { $self->{label_size} = 10; - $self->{value_size} = 18; + $self->{value_size} = 16; $self->{lap_size} = 24; } elsif ($self->{img_height} <= 100) { $self->{label_size} = 12; diff --git a/slotcarman b/slotcarman index 776e2ad..8aa6cbe 100755 --- a/slotcarman +++ b/slotcarman @@ -25,7 +25,7 @@ if (($opt{t} && $opt{l}) usage(); } -my $gui = SCX::GUI->new({ img_height => 100 }); +my $gui = SCX::GUI->new({ img_height => 70 }); my $track = SCX::Track->new({ gui => $gui, no_semaphore => $opt{f} }); my $logfile = 'log'; diff --git a/slotcarman.glade b/slotcarman.glade index 6b2f874..57674a8 100644 --- a/slotcarman.glade +++ b/slotcarman.glade @@ -372,7 +372,7 @@ True Click to modify end - 25 + 20 True @@ -621,7 +621,7 @@ True Click to modify end - 25 + 20 True @@ -636,7 +636,7 @@ True Click to modify end - 25 + 20 True @@ -651,7 +651,7 @@ True Click to modify end - 25 + 20 True @@ -666,7 +666,7 @@ True Click to modify end - 25 + 20 True @@ -681,7 +681,7 @@ True Click to modify end - 25 + 20 True @@ -1123,7 +1123,7 @@ True label - 24 + 14 1 @@ -1153,7 +1153,7 @@ True label - 24 + 14 1 @@ -1183,7 +1183,7 @@ True label - 24 + 14 1 @@ -1213,7 +1213,7 @@ True label - 24 + 14 1 @@ -1243,7 +1243,7 @@ True label - 24 + 14 1 @@ -1273,7 +1273,7 @@ True label - 24 + 14 1