diff options
author | Cypher87 <ronalddevries@gmail.com> | 2021-01-15 19:37:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 19:37:27 +0100 |
commit | 0f7efd5bf1f732cf8d2a3e826bb21b48f7ad1d80 (patch) | |
tree | d1415acdbb0bb1201165e940e3efe173ed218975 /Userland | |
parent | 9abcc2fb6c12b630fb413be7e200b986bfdb2c32 (diff) | |
download | serenity-0f7efd5bf1f732cf8d2a3e826bb21b48f7ad1d80.zip |
FileManager: Added label "Location" to BreadcrumbBar (#4924)
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/FileManager/FileManagerWindow.gml | 5 | ||||
-rw-r--r-- | Userland/Applications/FileManager/main.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Applications/FileManager/FileManagerWindow.gml b/Userland/Applications/FileManager/FileManagerWindow.gml index a13218dd16..d607b39457 100644 --- a/Userland/Applications/FileManager/FileManagerWindow.gml +++ b/Userland/Applications/FileManager/FileManagerWindow.gml @@ -25,6 +25,11 @@ @GUI::ToolBar { name: "breadcrumb_toolbar" + @GUI::Label { + text: "Location: " + autosize: true + } + @GUI::BreadcrumbBar { name: "breadcrumb_bar" } diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp index 9c410d7e79..622ada2d08 100644 --- a/Userland/Applications/FileManager/main.cpp +++ b/Userland/Applications/FileManager/main.cpp @@ -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& 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"); location_textbox.on_focusout = [&] { |