Mark important settings in bold

This commit is contained in:
Alessandro Ranellucci 2011-12-02 17:02:36 +01:00
parent b6fc93c0de
commit 5375f5fef4
3 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package Slic3r;
use strict;
use warnings;
our $VERSION = "0.5.4";
our $VERSION = "0.5.5beta";
our $debug = 0;
sub debugf {

View File

@ -12,6 +12,7 @@ our $Options = {
label => 'Nozzle diameter',
cli => 'nozzle-diameter=f',
type => 'f',
important => 1,
},
'print_center' => {
label => 'Print center',
@ -27,7 +28,7 @@ our $Options = {
},
'extrusion_axis' => {
label => 'Extrusion axis',
cli => 'extrusion_axis',
cli => 'extrusion-axis',
type => 's',
},
'z_offset' => {
@ -51,6 +52,7 @@ our $Options = {
label => 'Diameter (mm)',
cli => 'filament-diameter=f',
type => 'f',
important => 1,
},
'extrusion_multiplier' => {
label => 'Extrusion multiplier',
@ -62,6 +64,7 @@ our $Options = {
label => 'Temperature (°C)',
cli => 'temperature=i',
type => 'i',
important => 1,
},
# speed options

View File

@ -17,11 +17,14 @@ sub new {
my $self = $class->SUPER::new($box, wxVERTICAL);
my $grid_sizer = Wx::FlexGridSizer->new(scalar(@{$p{options}}), 2, 2, 0);
my $bold_font = Wx::SystemSettings::GetFont(0);
$bold_font->SetWeight(&Wx::wxFONTWEIGHT_BOLD);
foreach my $opt_key (@{$p{options}}) {
my $opt = $Slic3r::Config::Options->{$opt_key};
my $label = Wx::StaticText->new($parent, -1, "$opt->{label}:", Wx::wxDefaultPosition, [180,-1]);
$label->Wrap(180); # needed to avoid Linux/GTK bug
$label->SetFont($bold_font) if $opt->{important};
my $field;
if ($opt->{type} =~ /^(i|f|s)$/) {
my $style = 0;