2020-12-20 07:47:44 -03:00
|
|
|
@GUI::Widget {
|
|
|
|
|
name: "main"
|
|
|
|
|
fill_with_background_color: true
|
|
|
|
|
|
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
|
|
|
spacing: 2
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-13 11:18:20 -03:00
|
|
|
@GUI::ToolbarContainer {
|
2021-02-12 14:34:04 -03:00
|
|
|
name: "toolbar_container"
|
|
|
|
|
|
2021-04-13 11:18:20 -03:00
|
|
|
@GUI::Toolbar {
|
2020-12-20 07:47:44 -03:00
|
|
|
name: "toolbar"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::HorizontalSplitter {
|
|
|
|
|
@GUI::TextEditor {
|
|
|
|
|
name: "editor"
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-20 17:00:31 -03:00
|
|
|
@GUI::Widget {
|
|
|
|
|
name: "web_view_container"
|
2020-12-20 07:47:44 -03:00
|
|
|
visible: false
|
2021-05-20 17:00:31 -03:00
|
|
|
|
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
|
|
|
}
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-21 21:01:26 -03:00
|
|
|
@GUI::GroupBox {
|
2020-12-20 07:47:44 -03:00
|
|
|
name: "find_replace_widget"
|
|
|
|
|
visible: false
|
|
|
|
|
fill_with_background_color: true
|
2021-02-21 21:01:26 -03:00
|
|
|
fixed_height: 56
|
2020-12-20 07:47:44 -03:00
|
|
|
|
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
2021-02-21 21:01:26 -03:00
|
|
|
spacing: 2
|
Userland+LibGUI: Add shorthand versions of the Margins constructor
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same
margin on all edges, for example. The constructors follow CSS' style of
specifying margins. The added constructors are:
- Margins(int all): Sets the same margin on all edges.
- Margins(int vertical, int horizontal): Sets the first argument to top
and bottom margins, and the second argument to left and right margins.
- Margins(int top, int vertical, int bottom): Sets the first argument to
the top margin, the second argument to the left and right margins,
and the third argument to the bottom margin.
2021-08-16 21:11:38 -03:00
|
|
|
margins: [5]
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
name: "find_widget"
|
|
|
|
|
fill_with_background_color: true
|
2020-12-29 21:23:32 -03:00
|
|
|
fixed_height: 22
|
2020-12-20 07:47:44 -03:00
|
|
|
|
|
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
2021-02-21 21:01:26 -03:00
|
|
|
spacing: 4
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
|
name: "find_previous_button"
|
2021-02-21 21:01:26 -03:00
|
|
|
fixed_width: 38
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
|
name: "find_next_button"
|
2021-02-21 21:01:26 -03:00
|
|
|
fixed_width: 38
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
|
|
|
|
name: "find_textbox"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::CheckBox {
|
|
|
|
|
name: "regex_checkbox"
|
|
|
|
|
text: "Use RegEx"
|
|
|
|
|
fixed_width: 80
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::CheckBox {
|
|
|
|
|
name: "match_case_checkbox"
|
|
|
|
|
text: "Match case"
|
|
|
|
|
fixed_width: 85
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
name: "replace_widget"
|
|
|
|
|
fill_with_background_color: true
|
2020-12-29 21:23:32 -03:00
|
|
|
fixed_height: 22
|
2020-12-20 07:47:44 -03:00
|
|
|
|
|
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
2021-02-21 21:01:26 -03:00
|
|
|
spacing: 4
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Button {
|
2021-02-21 21:01:26 -03:00
|
|
|
name: "replace_button"
|
|
|
|
|
text: "Replace"
|
|
|
|
|
fixed_width: 80
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
|
2021-02-21 21:01:26 -03:00
|
|
|
@GUI::TextBox {
|
|
|
|
|
name: "replace_textbox"
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
|
name: "replace_all_button"
|
|
|
|
|
text: "Replace all"
|
2021-02-21 21:01:26 -03:00
|
|
|
fixed_width: 80
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::CheckBox {
|
|
|
|
|
name: "wrap_around_checkbox"
|
|
|
|
|
text: "Wrap around"
|
|
|
|
|
fixed_width: 85
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-13 11:18:20 -03:00
|
|
|
@GUI::Statusbar {
|
2020-12-20 07:47:44 -03:00
|
|
|
name: "statusbar"
|
2021-09-18 17:30:23 -03:00
|
|
|
label_count: 2
|
2020-12-20 07:47:44 -03:00
|
|
|
}
|
|
|
|
|
}
|