mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:17:44 +00:00
Assistant: Use FileIconProvider for FileProvider query results
Instead of showing the default "folder" icon for all file results, we now show an appropriate icon for the given file. :^)
This commit is contained in:
parent
513e67e2eb
commit
d640031214
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ void CalculatorProvider::query(String const& query, Function<void(NonnullRefPtrV
|
|||
|
||||
Gfx::Bitmap const* FileResult::bitmap() const
|
||||
{
|
||||
return GUI::Icon::default_icon("filetype-folder").bitmap_for_size(16);
|
||||
return GUI::FileIconProvider::icon_for_path(title()).bitmap_for_size(16);
|
||||
}
|
||||
|
||||
void FileProvider::query(const String& query, Function<void(NonnullRefPtrVector<Result>)> on_complete)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue