Show blinking caret in authentication fields

This commit is contained in:
hz
2026-07-18 14:45:59 -05:00
parent 722d91fe94
commit 33e461fd36
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -44,6 +44,12 @@ func _initialize() -> void:
_assert(show_icon != null and password_reveal.icon != null and show_icon != password_reveal.icon, "password visibility should switch bundled eye icons")
password_reveal.free()
password.free()
var field_parent := VBoxContainer.new()
login.add_child(field_parent)
var auth_field: LineEdit = login._add_field(field_parent, "Email", "[email protected]")
_assert(auth_field.caret_blink, "authentication fields should display a blinking caret")
_assert(is_equal_approx(auth_field.caret_blink_interval, 0.5), "authentication field caret should blink at a visible interval")
login.free()
theme_toggle.free()