diff --git a/src/icons.rs b/src/icons.rs index d3c061e..07d9bf0 100644 --- a/src/icons.rs +++ b/src/icons.rs @@ -55,4 +55,9 @@ impl Icons { let icon_path = format!("{}/{}.svg", self.icons_dir_path, icon); fs::read(icon_path).ok() } + + pub fn get_icon_string(&self, icon: &str) -> Option { + let icon_path = format!("{}/{}.svg", self.icons_dir_path, icon); + fs::read_to_string(icon_path).ok() + } }