Background Color
This commit is contained in:
1 parent
2fac1af08f
commit
77f47dc5aa
5 files changed
+39
-6
No files matched your search
@@ -215,6 +215,11 @@ function newCircularMenuItem() {
|
||||
}
|
||||
}
|
||||
iconPhysics()
|
||||
backgroundColorPhysics()
|
||||
}
|
||||
|
||||
function backgroundColorPhysics(){
|
||||
defaultBackgroudColor = canvas.floatingSpace.style.backgroundColor
|
||||
}
|
||||
|
||||
function iconPhysics() {
|
||||
@@ -408,7 +413,7 @@ function newCircularMenuItem() {
|
||||
cornerRadius: 5,
|
||||
lineWidth: 0.1,
|
||||
container: thisObject.container,
|
||||
borderColor: UI_COLOR.DARK,
|
||||
borderColor: backgroundColor,
|
||||
backgroundColor: backgroundColor,
|
||||
castShadow: false,
|
||||
xOffset: 60
|
||||
|
||||
@@ -1890,7 +1890,7 @@ function newUiObject() {
|
||||
browserCanvasContext.arc(visiblePosition.x, visiblePosition.y, VISIBLE_RADIUS - 2, 0, Math.PI * 2, true)
|
||||
browserCanvasContext.closePath()
|
||||
|
||||
browserCanvasContext.fillStyle = 'rgba(' + UI_COLOR.BLACK + ', 1)'
|
||||
browserCanvasContext.fillStyle = 'rgba(' + canvas.floatingSpace.style.backgroundColor + ', 1)'
|
||||
|
||||
browserCanvasContext.fill()
|
||||
|
||||
@@ -1906,7 +1906,7 @@ function newUiObject() {
|
||||
browserCanvasContext.beginPath()
|
||||
browserCanvasContext.arc(visiblePosition.x, visiblePosition.y, VISIBLE_RADIUS, 0, Math.PI * 2, true)
|
||||
browserCanvasContext.closePath()
|
||||
browserCanvasContext.fillStyle = 'rgba(' + UI_COLOR.BLACK + ', 0.70)'
|
||||
browserCanvasContext.fillStyle = 'rgba(' + canvas.floatingSpace.style.backgroundColor + ', 0.70)'
|
||||
browserCanvasContext.fill()
|
||||
/* Border when node is in focus */
|
||||
if (
|
||||
|
||||
@@ -307,8 +307,8 @@ function newUiObjectTitle() {
|
||||
cornerRadius: 3,
|
||||
lineWidth: 0.1,
|
||||
container: thisObject.container,
|
||||
borderColor: UI_COLOR.BLACK,
|
||||
backgroundColor: UI_COLOR.BLACK,
|
||||
borderColor: canvas.floatingSpace.style.backgroundColor,
|
||||
backgroundColor: canvas.floatingSpace.style.backgroundColor,
|
||||
castShadow: false,
|
||||
opacity: 0.25
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user