From 4b33c3110664351acb509c626176cc26dcc9d490 Mon Sep 17 00:00:00 2001 From: yw4z Date: Sun, 13 Apr 2025 08:35:23 +0300 Subject: [PATCH] Fix: Correct color of bed plates without 3D model (#9320) fix color --- src/slic3r/GUI/3DBed.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/3DBed.cpp b/src/slic3r/GUI/3DBed.cpp index 5c843f4cbe..8e02ecf6cb 100644 --- a/src/slic3r/GUI/3DBed.cpp +++ b/src/slic3r/GUI/3DBed.cpp @@ -729,7 +729,9 @@ void Bed3D::render_default(bool bottom, const Transform3d& view_matrix, const Tr if (m_model.get_filename().empty() && !bottom) { // draw background glsafe(::glDepthMask(GL_FALSE)); - m_triangles.set_color(DEFAULT_MODEL_COLOR); + ColorRGBA color = m_is_dark ? DEFAULT_MODEL_COLOR_DARK : DEFAULT_MODEL_COLOR; // ORCA add dark mode support + color = ColorRGBA(color[0] * 0.8f, color[1] * 0.8f,color[2] * 0.8f, color[3]); // ORCA shift color a darker tone to fix difference between flat / gouraud_light shader + m_triangles.set_color(color); m_triangles.render(); glsafe(::glDepthMask(GL_TRUE)); }