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

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2017-01-23 22:08:45 +0300
committerfieldOfView <aldo@fieldofview.com>2017-01-24 00:08:27 +0300
commit45c808342389ef38405c4be512dc2d8c8a152f6a (patch)
treedddc44fd7eade357a1a592f0eca2d459b4354001 /cura/ConvexHullNode.py
parent32823a01836ef2774c442b4ce8a40947d376dd47 (diff)
Use themeable colors in Solid, Xray & Layer view
Diffstat (limited to 'cura/ConvexHullNode.py')
-rw-r--r--cura/ConvexHullNode.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cura/ConvexHullNode.py b/cura/ConvexHullNode.py
index 8e5acf9518..7282b0ffb2 100644
--- a/cura/ConvexHullNode.py
+++ b/cura/ConvexHullNode.py
@@ -1,6 +1,7 @@
# Copyright (c) 2015 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher.
+from UM.Application import Application
from UM.Scene.SceneNode import SceneNode
from UM.Resources import Resources
from UM.Math.Color import Color
@@ -23,7 +24,7 @@ class ConvexHullNode(SceneNode):
self._original_parent = parent
# Color of the drawn convex hull
- self._color = Color(0.4, 0.4, 0.4, 1.0)
+ self._color = None
# The y-coordinate of the convex hull mesh. Must not be 0, to prevent z-fighting.
self._mesh_height = 0.1
@@ -72,7 +73,7 @@ class ConvexHullNode(SceneNode):
return True
def _onNodeDecoratorsChanged(self, node):
- self._color = Color(35, 35, 35, 0.5)
+ self._color = Color(*Application.getInstance().getTheme().getColor("convex_hull").getRgb())
convex_hull_head = self._node.callDecoration("getConvexHullHead")
if convex_hull_head: