summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FilePicker.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-09 21:18:43 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-09 21:53:43 +0200
commitda7dbc116eafe03867c6aa9bd5fcfa4354ea90e3 (patch)
treeeaa68f31d0a211e305c87508b8167cb28f6eef9b /Userland/Libraries/LibGUI/FilePicker.cpp
parent11bea5d633306c3fc32d60795c7eabd035ccd05c (diff)
downloadserenity-da7dbc116eafe03867c6aa9bd5fcfa4354ea90e3.zip
LibGUI: Use "Tray" look & feel for the common locations frame :^)
Diffstat (limited to 'Userland/Libraries/LibGUI/FilePicker.cpp')
-rw-r--r--Userland/Libraries/LibGUI/FilePicker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/FilePicker.cpp b/Userland/Libraries/LibGUI/FilePicker.cpp
index 4ca510d4a4..c68dbf09e8 100644
--- a/Userland/Libraries/LibGUI/FilePicker.cpp
+++ b/Userland/Libraries/LibGUI/FilePicker.cpp
@@ -223,9 +223,11 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, const StringView& file_
};
auto& common_locations_frame = *widget.find_descendant_of_type_named<GUI::Frame>("common_locations_frame");
+ common_locations_frame.set_background_role(Gfx::ColorRole::Tray);
auto add_common_location_button = [&](auto& name, String path) -> GUI::Button& {
auto& button = common_locations_frame.add<GUI::Button>();
- button.set_button_style(Gfx::ButtonStyle::CoolBar);
+ button.set_button_style(Gfx::ButtonStyle::Tray);
+ button.set_foreground_role(Gfx::ColorRole::TrayText);
button.set_text_alignment(Gfx::TextAlignment::CenterLeft);
button.set_text(move(name));
button.set_icon(FileIconProvider::icon_for_path(path).bitmap_for_size(16));