mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 22:25:56 +08:00
prepend this-> to own variables.
This commit is contained in:
parent
7a048c3f70
commit
36336840ba
@ -7,15 +7,15 @@ std::unique_ptr<Settings> ui_settings {nullptr};
|
|||||||
|
|
||||||
Settings::Settings() {
|
Settings::Settings() {
|
||||||
// Initialize fonts
|
// Initialize fonts
|
||||||
_small_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
this->_small_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
if (the_os == OS::Mac) _small_font.SetPointSize(11);
|
if (the_os == OS::Mac) _small_font.SetPointSize(11);
|
||||||
_small_bold_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
this->_small_bold_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
if (the_os == OS::Mac) _small_bold_font.SetPointSize(11);
|
if (the_os == OS::Mac) _small_bold_font.SetPointSize(11);
|
||||||
_small_bold_font.MakeBold();
|
this->_small_bold_font.MakeBold();
|
||||||
_medium_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
this->_medium_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
|
||||||
_medium_font.SetPointSize(12);
|
this->_medium_font.SetPointSize(12);
|
||||||
|
|
||||||
_scroll_step = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT).GetPointSize();
|
this->_scroll_step = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT).GetPointSize();
|
||||||
}
|
}
|
||||||
void Settings::save_settings() {
|
void Settings::save_settings() {
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user