Skip to content

Commit

Permalink
bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchanvfx committed Aug 22, 2023
1 parent 323b74d commit 82f0028
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -755,16 +755,17 @@ def add_node(self, node):
prop_widget.property_closed.connect(self.__on_prop_close)
prop_widget.property_changed.connect(self.__on_property_widget_changed)
port_connections = prop_widget.get_port_connection_widget()
port_connections.input_group.clicked.connect(
lambda v: self.__on_port_tree_visible_changed(
prop_widget.node_id(), v, port_connections.input_tree
if port_connections:
port_connections.input_group.clicked.connect(
lambda v: self.__on_port_tree_visible_changed(
prop_widget.node_id(), v, port_connections.input_tree
)
)
)
port_connections.output_group.clicked.connect(
lambda v: self.__on_port_tree_visible_changed(
prop_widget.node_id(), v, port_connections.output_tree
port_connections.output_group.clicked.connect(
lambda v: self.__on_port_tree_visible_changed(
prop_widget.node_id(), v, port_connections.output_tree
)
)
)

self._prop_list.setCellWidget(0, 0, prop_widget)

Expand Down
2 changes: 1 addition & 1 deletion NodeGraphQt/widgets/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def drawBackground(self, painter, rect):
painter, rect, pen, ViewerEnum.GRID_SIZE.value
)

color = QtGui.QColor(*self._bg_color).darker(150)
color = QtGui.QColor(*self._bg_color).darker(200)
if zoom < -0.0:
color = color.darker(100 - int(zoom * 110))
pen = QtGui.QPen(color, 0.65)
Expand Down

0 comments on commit 82f0028

Please sign in to comment.