Mark important settings in bold
This commit is contained in:
parent
b6fc93c0de
commit
5375f5fef4
@ -3,7 +3,7 @@ package Slic3r;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
our $VERSION = "0.5.4";
|
our $VERSION = "0.5.5beta";
|
||||||
|
|
||||||
our $debug = 0;
|
our $debug = 0;
|
||||||
sub debugf {
|
sub debugf {
|
||||||
|
@ -12,6 +12,7 @@ our $Options = {
|
|||||||
label => 'Nozzle diameter',
|
label => 'Nozzle diameter',
|
||||||
cli => 'nozzle-diameter=f',
|
cli => 'nozzle-diameter=f',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
|
important => 1,
|
||||||
},
|
},
|
||||||
'print_center' => {
|
'print_center' => {
|
||||||
label => 'Print center',
|
label => 'Print center',
|
||||||
@ -27,7 +28,7 @@ our $Options = {
|
|||||||
},
|
},
|
||||||
'extrusion_axis' => {
|
'extrusion_axis' => {
|
||||||
label => 'Extrusion axis',
|
label => 'Extrusion axis',
|
||||||
cli => 'extrusion_axis',
|
cli => 'extrusion-axis',
|
||||||
type => 's',
|
type => 's',
|
||||||
},
|
},
|
||||||
'z_offset' => {
|
'z_offset' => {
|
||||||
@ -51,6 +52,7 @@ our $Options = {
|
|||||||
label => 'Diameter (mm)',
|
label => 'Diameter (mm)',
|
||||||
cli => 'filament-diameter=f',
|
cli => 'filament-diameter=f',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
|
important => 1,
|
||||||
},
|
},
|
||||||
'extrusion_multiplier' => {
|
'extrusion_multiplier' => {
|
||||||
label => 'Extrusion multiplier',
|
label => 'Extrusion multiplier',
|
||||||
@ -62,6 +64,7 @@ our $Options = {
|
|||||||
label => 'Temperature (°C)',
|
label => 'Temperature (°C)',
|
||||||
cli => 'temperature=i',
|
cli => 'temperature=i',
|
||||||
type => 'i',
|
type => 'i',
|
||||||
|
important => 1,
|
||||||
},
|
},
|
||||||
|
|
||||||
# speed options
|
# speed options
|
||||||
|
@ -17,11 +17,14 @@ sub new {
|
|||||||
my $self = $class->SUPER::new($box, wxVERTICAL);
|
my $self = $class->SUPER::new($box, wxVERTICAL);
|
||||||
|
|
||||||
my $grid_sizer = Wx::FlexGridSizer->new(scalar(@{$p{options}}), 2, 2, 0);
|
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}}) {
|
foreach my $opt_key (@{$p{options}}) {
|
||||||
my $opt = $Slic3r::Config::Options->{$opt_key};
|
my $opt = $Slic3r::Config::Options->{$opt_key};
|
||||||
my $label = Wx::StaticText->new($parent, -1, "$opt->{label}:", Wx::wxDefaultPosition, [180,-1]);
|
my $label = Wx::StaticText->new($parent, -1, "$opt->{label}:", Wx::wxDefaultPosition, [180,-1]);
|
||||||
$label->Wrap(180); # needed to avoid Linux/GTK bug
|
$label->Wrap(180); # needed to avoid Linux/GTK bug
|
||||||
|
$label->SetFont($bold_font) if $opt->{important};
|
||||||
my $field;
|
my $field;
|
||||||
if ($opt->{type} =~ /^(i|f|s)$/) {
|
if ($opt->{type} =~ /^(i|f|s)$/) {
|
||||||
my $style = 0;
|
my $style = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user