mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
2a7c638cd9
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!
22 lines
390 B
Plaintext
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"
|
|
}
|
|
}
|