Use the colours from the UI palette for the build volume

This commit is contained in:
Arjen Hiemstra 2015-04-07 10:52:47 +02:00
parent f001efde8f
commit 130e97b860

View file

@ -10,7 +10,7 @@ from UM.Math.Color import Color
import numpy
class BuildVolume(SceneNode):
VolumeOutlineColor = Color(140, 170, 240, 255)
VolumeOutlineColor = Color(12, 169, 227, 255)
def __init__(self, parent = None):
super().__init__(parent)
@ -52,8 +52,8 @@ class BuildVolume(SceneNode):
Resources.getPath(Resources.ShadersLocation, 'basic.vert'),
Resources.getPath(Resources.ShadersLocation, 'grid.frag')
)
self._grid_material.setUniformValue('u_gridColor0', Color(255, 255, 255, 255))
self._grid_material.setUniformValue('u_gridColor1', Color(140, 170, 240, 255))
self._grid_material.setUniformValue('u_gridColor0', Color(245, 245, 245, 255))
self._grid_material.setUniformValue('u_gridColor1', Color(205, 202, 201, 255))
renderer.queueNode(self, material = self._material, mode = Renderer.RenderLines)
renderer.queueNode(self, mesh = self._grid_mesh, material = self._grid_material)
@ -111,7 +111,7 @@ class BuildVolume(SceneNode):
area[1],
area[2],
area[3],
color = Color(0.8, 0.8, 0.8, 1.0)
color = Color(174, 174, 174, 255)
)
self._disallowed_area_mesh = mb.getData()