mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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
Notes:
sideshowbarker
2024-07-18 11:03:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d6400312141
@ -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…
Reference in New Issue
Block a user