#pragma once #include #include #include #include #include namespace WallpaperEngine::Desktop { class IconTheme { public: static IconTheme& get (); [[nodiscard]] std::optional find (const std::string& icon); private: IconTheme (); struct Candidate { std::filesystem::path path; int score; }; const std::map& index (const std::string& theme); [[nodiscard]] std::vector inherits (const std::string& theme) const; std::vector m_baseDirs; std::vector m_themes; std::map> m_indexes; }; }