mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
DoubleSlider::Control background color
This commit is contained in:
parent
1af798dbd7
commit
6810550a6c
1 changed files with 8 additions and 0 deletions
|
@ -399,7 +399,11 @@ void Control::draw_focus_rect()
|
||||||
|
|
||||||
void Control::render()
|
void Control::render()
|
||||||
{
|
{
|
||||||
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||||
|
#else
|
||||||
SetBackgroundColour(GetParent()->GetBackgroundColour());
|
SetBackgroundColour(GetParent()->GetBackgroundColour());
|
||||||
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
draw_focus_rect();
|
draw_focus_rect();
|
||||||
|
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
|
@ -770,7 +774,11 @@ void Control::draw_colored_band(wxDC& dc)
|
||||||
// don't color a band for MultiExtruder mode
|
// don't color a band for MultiExtruder mode
|
||||||
if (m_ticks.empty() || m_mode == t_mode::MultiExtruder)
|
if (m_ticks.empty() || m_mode == t_mode::MultiExtruder)
|
||||||
{
|
{
|
||||||
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
draw_band(dc, wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW), main_band);
|
||||||
|
#else
|
||||||
draw_band(dc, GetParent()->GetBackgroundColour(), main_band);
|
draw_band(dc, GetParent()->GetBackgroundColour(), main_band);
|
||||||
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue