Skip to content

Commit

Permalink
fix bg color of node-to-node panel
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Oct 24, 2023
1 parent 03f1e78 commit ec671b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/pronto/signal_connecting/node_to_node_configurator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ static func _open(anchor: Node, undo_redo: EditorUndoRedoManager):
var i = preload("res://addons/pronto/signal_connecting/node_to_node_configurator.tscn").instantiate()
i.anchor = anchor
i.undo_redo = undo_redo

# FIXME godot 4.2 beta did not assign a background color to the panel
var s = G.at("_pronto_editor_plugin").get_editor_interface().get_editor_settings()
var box = StyleBoxFlat.new()
box.bg_color = s.get("interface/theme/base_color")
i.add_theme_stylebox_override("panel", box)

return i

static func open_existing(undo_redo: EditorUndoRedoManager, from: Node, connection: Connection):
Expand Down

0 comments on commit ec671b5

Please sign in to comment.