mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Use the colours from the UI palette for the build volume
This commit is contained in:
parent
f001efde8f
commit
130e97b860
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue