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

@ -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;