mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
Moved units of measure to the right of input fields
This commit is contained in:
parent
b7983b54f8
commit
72298877bb
3 changed files with 107 additions and 50 deletions
|
@ -23,6 +23,8 @@ sub new {
|
|||
# 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(&Wx::wxFONTWEIGHT_BOLD);
|
||||
my $sidetext_font = Wx::SystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||
$sidetext_font->SetPointSize(12);
|
||||
|
||||
foreach my $opt_key (@{$p{options}}) {
|
||||
my $opt = $Slic3r::Config::Options->{$opt_key};
|
||||
|
@ -95,7 +97,16 @@ sub new {
|
|||
} else {
|
||||
die "Unsupported option type: " . $opt->{type};
|
||||
}
|
||||
$grid_sizer->Add($field);
|
||||
if ($opt->{sidetext}) {
|
||||
my $sizer = Wx::BoxSizer->new(&Wx::wxHORIZONTAL);
|
||||
$sizer->Add($field);
|
||||
my $sidetext = Wx::StaticText->new($parent, -1, $opt->{sidetext}, Wx::wxDefaultPosition, [-1, -1]);
|
||||
$sidetext->SetFont($sidetext_font);
|
||||
$sizer->Add($sidetext, 0, &Wx::wxLEFT, 4);
|
||||
$grid_sizer->Add($sizer);
|
||||
} else {
|
||||
$grid_sizer->Add($field);
|
||||
}
|
||||
$fields{$opt_key} ||= [$field];
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ sub new {
|
|||
$self->AddOptionsPage('Infill', 'shading.png', optgroups => [
|
||||
{
|
||||
title => 'Infill',
|
||||
options => [qw(fill_density fill_angle fill_pattern solid_fill_pattern)],
|
||||
options => [qw(fill_density fill_angle fill_pattern solid_fill_pattern infill_every_layers)],
|
||||
},
|
||||
]);
|
||||
|
||||
|
@ -78,7 +78,7 @@ sub new {
|
|||
options => [qw(travel_speed)],
|
||||
},
|
||||
{
|
||||
title => 'Advanced',
|
||||
title => 'Modifiers',
|
||||
options => [qw(first_layer_speed)],
|
||||
},
|
||||
]);
|
||||
|
@ -247,7 +247,7 @@ sub new {
|
|||
sub append_optgroup {
|
||||
my $self = shift;
|
||||
|
||||
my $optgroup = Slic3r::GUI::OptionsGroup->new($self, @_, label_width => 300);
|
||||
my $optgroup = Slic3r::GUI::OptionsGroup->new($self, @_, label_width => 200);
|
||||
$self->{vsizer}->Add($optgroup, 0, wxEXPAND | wxALL, 5);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue