pub fn load_icon(&self, icon_name: &str) -> Option<PathBuf> {
        for mut icon_path in self.dirs.clone() {
            icon_path.push("cursors");
            icon_path.push(icon_name);

            if icon_path.is_file() {
                return Some(icon_path);
            }
        }

        // If we're trying to find the inheritance of default
        if self.name == self.inherits {
            return None;
        }

        CursorTheme::load(&self.inherits, self.search_paths.clone()).load_icon(icon_name)
    }
/// Attempts to load an icon from the theme.
/// If the icon is not found within this theme's
/// directories, then the function looks at the
/// theme from which this theme is inherited.
Attempts to load an icon from the theme.
If the icon is not found within this theme's
directories, then the function looks at the
theme from which this theme is inherited.
Attempts to load an icon from the theme . If the icon is not found within this theme ' s directories then the function looks at the theme from which this theme is inherited .
pub fn load_icon(&self, icon_name: &str) -> Option<PathBuf> {
        for mut icon_path in self.dirs.clone() {
            icon_path.push("cursors");
            icon_path.push(icon_name);
            if icon_path.is_file() {
                return Some(icon_path);
            }
        }
        // If we're trying to find the inheritance of default
        if self.name == self.inherits {
            return None;
        }
        CursorTheme::load(&self.inherits, self.search_paths.clone()).load_icon(icon_name)
    }
pub fn load_icon ( & self , icon_name : & str ) -> Option < PathBuf > { for mut icon_path in self . dirs . clone ( ) { icon_path . push ( " " ) ; icon_path . push ( icon_name ) ; if icon_path . is_file ( ) { return Some ( icon_path ) ; } } // If we're trying to find the inheritance of default if self . name == self . inherits { return None ; } CursorTheme :: load ( & self . inherits , self . search_paths . clone ( ) ) . load_icon ( icon_name ) }
Attempts to load an icon from the theme.
Attempts to load an icon from the theme .
&self
icon_name
&str
&self
icon_name
&str