mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-25 07:37:37 +08:00
Follow-up of eca4f0a4cd31279fa27f84490dfb15f72c5d10e3. Fixed preview background on all platforms
This commit is contained in:
parent
eca4f0a4cd
commit
db77f80681
@ -238,7 +238,14 @@ bool Preview::init(wxWindow* parent, Model* model)
|
|||||||
if (!Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 /* disable wxTAB_TRAVERSAL */))
|
if (!Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 /* disable wxTAB_TRAVERSAL */))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
// to match the background of the sliders
|
||||||
|
#ifdef _WIN32
|
||||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||||
|
#else
|
||||||
|
SetBackgroundColour(GetParent()->GetBackgroundColour());
|
||||||
|
#endif // _WIN32
|
||||||
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
|
|
||||||
m_canvas_widget = OpenGLManager::create_wxglcanvas(*this);
|
m_canvas_widget = OpenGLManager::create_wxglcanvas(*this);
|
||||||
if (m_canvas_widget == nullptr)
|
if (m_canvas_widget == nullptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user