mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Base+LibGUI: Add an familiar-looking icon for the desktop directory
This commit is contained in:
parent
2de1f32433
commit
42ec6718f2
Notes:
sideshowbarker
2024-07-18 20:36:42 +09:00
Author: https://github.com/awesomekling
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