Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-05-23 09:58:42 +0300
committerYuSanka <yusanka@gmail.com>2019-05-23 09:58:42 +0300
commit1721a7db5bc7c3f9dae9eb38ca27f76b71d9bab8 (patch)
treecf2fe8adf658a9888599e7b2f2a551b46704d159 /src/slic3r/GUI/Preferences.cpp
parenta1e09c3db3104a9e01ebe69d11e67a6bc13beb4a (diff)
Added comments and some changes of input parameters for slider
Diffstat (limited to 'src/slic3r/GUI/Preferences.cpp')
-rw-r--r--src/slic3r/GUI/Preferences.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp
index bbd2585d1..52cbdbb1d 100644
--- a/src/slic3r/GUI/Preferences.cpp
+++ b/src/slic3r/GUI/Preferences.cpp
@@ -189,6 +189,8 @@ void PreferencesDialog::create_icon_size_slider()
wxWindow* parent = m_optgroup->ctrl_parent();
if (isOSX)
+ // For correct rendering of the slider and value label under OSX
+ // we should use system default background
parent->SetBackgroundStyle(wxBG_STYLE_ERASE);
auto label = new wxStaticText(parent, wxID_ANY, _(L("Icon size in a respect to the default size")) + " (%) :");
@@ -201,11 +203,11 @@ void PreferencesDialog::create_icon_size_slider()
if (!isOSX)
style |= wxSL_LABELS | wxSL_AUTOTICKS;
- auto slider = new wxSlider(parent, wxID_ANY, def_val, 25, 100,
+ auto slider = new wxSlider(parent, wxID_ANY, def_val, 30, 100,
wxDefaultPosition, wxDefaultSize, style);
- slider->SetTickFreq(25);
- slider->SetPageSize(25);
+ slider->SetTickFreq(10);
+ slider->SetPageSize(10);
slider->SetToolTip(_(L("Select toolbar icon size in respect to the default one.")));
m_icon_size_sizer->Add(slider, 1, wxEXPAND);
@@ -228,7 +230,7 @@ void PreferencesDialog::create_icon_size_slider()
if (!win) continue;
win->SetFont(wxGetApp().normal_font());
- if (isOSX) continue;
+ if (isOSX) continue; // under OSX we use wxBG_STYLE_ERASE
win->SetBackgroundStyle(wxBG_STYLE_PAINT);
}