Show blinking caret in authentication fields
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user