ladybird/Userland/Applications/CharacterMap/CharacterSearchWindow.gml
Sam Atkins 2a7c638cd9 CharacterMap: Add a find-by-name window
This works the same way as the command-line usage, searching against the
display name as provided by LibUnicode.

I've modified the search loop to cover every possible unicode
code-point, since my previous logic was flawed. Code-points are not
dense, there are gaps, so simply iterating up to the count of them will
skip ones with higher values. Surprisingly, iterating all 1,114,112 of
them still runs in a third of a second. Computers are fast!
2022-01-16 11:17:03 +01:00

22 lines
390 B
Plaintext

@GUI::Frame {
layout: @GUI::VerticalBoxLayout {
}
fill_with_background_color: true
@GUI::Toolbar {
@GUI::TextBox {
name: "search_input"
}
@GUI::Button {
name: "search_button"
icon: "/res/icons/16x16/find.png"
fixed_width: 22
}
}
@GUI::ListView {
name: "results_list"
}
}