Skip to content

Commit 441117e

Browse files
committed
#472 fixing canvas background color
1 parent 7659d32 commit 441117e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

webapp/components/instantiation/NetPyNEInstantiated.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ class NetPyNEInstantiated extends React.Component {
135135
ref={this.canvasRef}
136136
key="CanvasContainer"
137137
cameraOptions={camOptions}
138-
backgroundColor={bgRegular}
138+
backgroundColor={
139+
this.props.theme === THEMES.BLACK
140+
? canvasBgDark
141+
: (this.props.theme === THEMES.LIGHT ? canvasBgLight : bgRegular)
142+
}
139143
onSelection={this.onSelection}
140144
/>
141145
</div>

0 commit comments

Comments
 (0)