diff -r caac957e9834 -r 30cb5e836736 src/gl/partrenderer.cpp --- a/src/gl/partrenderer.cpp Sat Feb 01 17:10:11 2020 +0200 +++ b/src/gl/partrenderer.cpp Sat Feb 01 17:20:10 2020 +0200 @@ -100,7 +100,12 @@ void PartRenderer::renderScene() { - glClearColor(0.8f, 0.8f, 0.8f, 1.0f); + const QColor& backgroundColor = this->renderPreferences.backgroundColor; + glClearColor( + static_cast(backgroundColor.redF()), + static_cast(backgroundColor.greenF()), + static_cast(backgroundColor.blueF()), + 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glEnable(GL_DEPTH_TEST); glEnable(GL_POLYGON_OFFSET_FILL);