From da7dbc116eafe03867c6aa9bd5fcfa4354ea90e3 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 9 Apr 2021 21:18:43 +0200 Subject: [PATCH] LibGUI: Use "Tray" look & feel for the common locations frame :^) --- Userland/Libraries/LibGUI/FilePicker.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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("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(); - 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));