Fix GraphEdit focus

pull/39/head
passivestar 2025-06-03 11:51:15 +07:00
parent cf23434744
commit 0b4fca69fd
1 changed files with 8 additions and 0 deletions

@ -417,6 +417,14 @@ func _init() -> void:
set_stylebox('pressed', 'FlatMenuButton', flat_button_pressed_sb)
set_stylebox('pressed_mirrored', 'FlatMenuButton', flat_button_pressed_sb)
# GraphEdit
sb = base_sb.duplicate()
sb.draw_center = false
sb.set_corner_radius_all(0)
_set_border(sb, mono_color * Color(1, 1, 1, 0.07), 2, false)
set_stylebox('panel_focus', 'GraphEdit', sb)
# GraphStateMachine
set_color('focus_color', 'GraphStateMachine', Color.TRANSPARENT)