Answer by Fedik for Style-aware icons for folders in Nautilus / Gnome Files
Maybe it to late, but anyway.To achieve what you asked you need to set an icon name folder-templates in metadata::custom-icon-name attribute. You can use gio to modify the folder attributes:gio set...
View ArticleStyle-aware icons for folders in Nautilus / Gnome Files
I'm running Gnome 3 on Fedora 25, and many of the xdg-compliant standard user directories (like "Desktop", "Downloads", "Public", etc) have a special icon when viewed in Nautilus (i.e. the Files app)....
View Article
More Pages to Explore .....