From e228b834e2a94c5f98d304ddc3f57dbedaaae5f2 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Sun, 15 Jul 2012 16:37:59 +0200 Subject: [PATCH] Retire the 'important' flag for options now that we have a configuration wizard. --- lib/Slic3r/Config.pm | 3 --- lib/Slic3r/GUI/OptionsGroup.pm | 7 ------- 2 files changed, 10 deletions(-) diff --git a/lib/Slic3r/Config.pm b/lib/Slic3r/Config.pm index 58fc01a3c..2a9eb0674 100644 --- a/lib/Slic3r/Config.pm +++ b/lib/Slic3r/Config.pm @@ -54,7 +54,6 @@ our $Options = { sidetext => 'mm', cli => 'nozzle-diameter=f', type => 'f', - important => 1, }, 'print_center' => { label => 'Print center', @@ -118,7 +117,6 @@ our $Options = { sidetext => 'mm', cli => 'filament-diameter=f', type => 'f', - important => 1, }, 'extrusion_multiplier' => { label => 'Extrusion multiplier', @@ -150,7 +148,6 @@ our $Options = { cli => 'temperature=i', type => 'i', max => 300, - important => 1, }, 'bed_temperature' => { label => 'Bed Temperature', diff --git a/lib/Slic3r/GUI/OptionsGroup.pm b/lib/Slic3r/GUI/OptionsGroup.pm index 1c7aa96d8..c68bcb644 100644 --- a/lib/Slic3r/GUI/OptionsGroup.pm +++ b/lib/Slic3r/GUI/OptionsGroup.pm @@ -22,9 +22,6 @@ sub new { $grid_sizer->SetFlexibleDirection(wxHORIZONTAL); $grid_sizer->AddGrowableCol($p{no_labels} ? 0 : 1); - # grab the default font, to fix Windows font issues/keep things consistent - my $bold_font = Wx::SystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT); - $bold_font->SetWeight(wxFONTWEIGHT_BOLD); my $sidetext_font = Wx::SystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT); my $onChange = $p{on_change} || sub {}; @@ -36,10 +33,6 @@ sub new { $label = Wx::StaticText->new($parent, -1, "$opt->{label}:", wxDefaultPosition, [$p{label_width} || 180, -1]); $label->Wrap($p{label_width} || 180) ; # needed to avoid Linux/GTK bug $grid_sizer->Add($label); - - # set the bold font point size to the same size as all the other labels (for consistency) - $bold_font->SetPointSize($label->GetFont()->GetPointSize()); - $label->SetFont($bold_font) if $opt->{important}; } my $field;