mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Fix canvas background in dark mode
This commit is contained in:
parent
e57f68a266
commit
483475ff48
1 changed files with 1 additions and 1 deletions
|
@ -6820,7 +6820,7 @@ void GLCanvas3D::_render_background()
|
||||||
GLShaderProgram* shader = wxGetApp().get_shader("background");
|
GLShaderProgram* shader = wxGetApp().get_shader("background");
|
||||||
if (shader != nullptr) {
|
if (shader != nullptr) {
|
||||||
shader->start_using();
|
shader->start_using();
|
||||||
shader->set_uniform("top_color", use_error_color ? ERROR_BG_LIGHT_COLOR : DEFAULT_BG_LIGHT_COLOR);
|
shader->set_uniform("top_color", bottom_color);
|
||||||
shader->set_uniform("bottom_color", bottom_color);
|
shader->set_uniform("bottom_color", bottom_color);
|
||||||
m_background.render();
|
m_background.render();
|
||||||
shader->stop_using();
|
shader->stop_using();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue