/* * Copyright (c) 2022, Itamar S. * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include #include #include namespace GUI { ErrorOr> IncrementalSearchBanner::try_create(TextEditor& editor) { auto widget = TRY(IncrementalSearchBanner::try_create()); widget->m_editor = editor; return widget; } ErrorOr IncrementalSearchBanner::initialize() { m_index_label = find_descendant_of_type_named