mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
FileManager: Added label "Location" to BreadcrumbBar (#4924)
This commit is contained in:
parent
9abcc2fb6c
commit
0f7efd5bf1
2 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,11 @@
|
||||||
@GUI::ToolBar {
|
@GUI::ToolBar {
|
||||||
name: "breadcrumb_toolbar"
|
name: "breadcrumb_toolbar"
|
||||||
|
|
||||||
|
@GUI::Label {
|
||||||
|
text: "Location: "
|
||||||
|
autosize: true
|
||||||
|
}
|
||||||
|
|
||||||
@GUI::BreadcrumbBar {
|
@GUI::BreadcrumbBar {
|
||||||
name: "breadcrumb_bar"
|
name: "breadcrumb_bar"
|
||||||
}
|
}
|
||||||
|
|
|
@ -339,7 +339,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
|
||||||
auto& location_textbox = *widget.find_descendant_of_type_named<GUI::TextBox>("location_textbox");
|
auto& location_textbox = *widget.find_descendant_of_type_named<GUI::TextBox>("location_textbox");
|
||||||
|
|
||||||
auto& breadcrumb_toolbar = *widget.find_descendant_of_type_named<GUI::ToolBar>("breadcrumb_toolbar");
|
auto& breadcrumb_toolbar = *widget.find_descendant_of_type_named<GUI::ToolBar>("breadcrumb_toolbar");
|
||||||
breadcrumb_toolbar.layout()->set_margins({});
|
breadcrumb_toolbar.layout()->set_margins({ 6, 0, 6, 0 });
|
||||||
auto& breadcrumb_bar = *widget.find_descendant_of_type_named<GUI::BreadcrumbBar>("breadcrumb_bar");
|
auto& breadcrumb_bar = *widget.find_descendant_of_type_named<GUI::BreadcrumbBar>("breadcrumb_bar");
|
||||||
|
|
||||||
location_textbox.on_focusout = [&] {
|
location_textbox.on_focusout = [&] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue