1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 15:35:06 +00:00
serenity/Userland/DevTools/HackStudio/FindWidget.gml
Itamar d9d299f884 HackStudio: Add FindWidget
The find widget appears on Ctrl+F.

It uses the GUI::TextEditor search API to search for text, which also
takes care of highlighting the search results.
2022-03-29 17:45:36 +02:00

32 lines
591 B
Text

@GUI::Widget {
name: "find_widget"
fill_with_background_color: true
shrink_to_fit: true
visible: false
layout: @GUI::HorizontalBoxLayout {
margins: [0, 0]
}
@GUI::TextBox {
name: "input_field"
max_width: 250
}
@GUI::Label {
name: "index_label"
max_width: 30
text: ""
}
@GUI::Button {
name: "next"
icon: "/res/icons/16x16/go-down.png"
max_width: 15
}
@GUI::Button {
name: "previous"
icon: "/res/icons/16x16/go-up.png"
max_width: 15
}
}