mirror of
https://github.com/RGBCube/serenity
synced 2025-06-28 21:02:07 +00:00
Base+LibGUI: Add an familiar-looking icon for the desktop directory
This commit is contained in:
parent
2de1f32433
commit
42ec6718f2
5 changed files with 14 additions and 1 deletions
|
@ -491,6 +491,8 @@ Icon FileSystemModel::icon_for(const Node& node) const
|
|||
return FileIconProvider::home_directory_open_icon();
|
||||
return FileIconProvider::home_directory_icon();
|
||||
}
|
||||
if (node.full_path() == Core::StandardPaths::desktop_directory())
|
||||
return FileIconProvider::desktop_directory_icon();
|
||||
if (node.is_selected() && node.is_accessible_directory)
|
||||
return FileIconProvider::directory_open_icon();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue