Follow-up of eca4f0a4cd
. Fixed preview background on all platforms
This commit is contained in:
parent
eca4f0a4cd
commit
db77f80681
1 changed files with 7 additions and 0 deletions
|
@ -238,7 +238,14 @@ bool Preview::init(wxWindow* parent, Model* model)
|
|||
if (!Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 /* disable wxTAB_TRAVERSAL */))
|
||||
return false;
|
||||
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
// to match the background of the sliders
|
||||
#ifdef _WIN32
|
||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||
#else
|
||||
SetBackgroundColour(GetParent()->GetBackgroundColour());
|
||||
#endif // _WIN32
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
|
||||
m_canvas_widget = OpenGLManager::create_wxglcanvas(*this);
|
||||
if (m_canvas_widget == nullptr)
|
||||
|
|
Loading…
Reference in a new issue