Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2019-04-29 10:02:04 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-04-29 10:02:04 +0300
commit2c9e3819c1562b7f84ee8ce71e58a3b334dbf4bc (patch)
tree4b34f873b7d94374079a8e5644c99594b4d61b6d /src/slic3r/GUI/3DBed.cpp
parent127a78d953bcfcc5d617a42520eae9dc68db96ac (diff)
Darker colors for axes arrows, transformation visual hints and gizmo grabbers
Diffstat (limited to 'src/slic3r/GUI/3DBed.cpp')
-rw-r--r--src/slic3r/GUI/3DBed.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/slic3r/GUI/3DBed.cpp b/src/slic3r/GUI/3DBed.cpp
index 05f4fd8fd..8392e534a 100644
--- a/src/slic3r/GUI/3DBed.cpp
+++ b/src/slic3r/GUI/3DBed.cpp
@@ -8,6 +8,7 @@
#include "GUI_App.hpp"
#include "PresetBundle.hpp"
+#include "Gizmos/GLGizmoBase.hpp"
#include <GL/glew.h>
@@ -232,7 +233,7 @@ void Bed3D::Axes::render() const
glsafe(::glEnable(GL_LIGHTING));
// x axis
- glsafe(::glColor3f(1.0f, 0.0f, 0.0f));
+ glsafe(::glColor3fv(AXES_COLOR[0]));
glsafe(::glPushMatrix());
glsafe(::glTranslated(origin(0), origin(1), origin(2)));
glsafe(::glRotated(90.0, 0.0, 1.0, 0.0));
@@ -240,7 +241,7 @@ void Bed3D::Axes::render() const
glsafe(::glPopMatrix());
// y axis
- glsafe(::glColor3f(0.0f, 1.0f, 0.0f));
+ glsafe(::glColor3fv(AXES_COLOR[1]));
glsafe(::glPushMatrix());
glsafe(::glTranslated(origin(0), origin(1), origin(2)));
glsafe(::glRotated(-90.0, 1.0, 0.0, 0.0));
@@ -248,7 +249,7 @@ void Bed3D::Axes::render() const
glsafe(::glPopMatrix());
// z axis
- glsafe(::glColor3f(0.0f, 0.0f, 1.0f));
+ glsafe(::glColor3fv(AXES_COLOR[2]));
glsafe(::glPushMatrix());
glsafe(::glTranslated(origin(0), origin(1), origin(2)));
render_axis(length(2));