diff --git a/src/view.rs b/src/view.rs index 29e69c6..1462311 100644 --- a/src/view.rs +++ b/src/view.rs @@ -36,6 +36,11 @@ impl Content for Taggart { } impl Entry { + pub const ICON_DIRECTORY: &'static str = ""; + pub const ICON_IMAGE: &'static str = "󰋩"; + pub const ICON_MUSIC: &'static str = ""; + pub const ICON_MUSIC_NO_META: &'static str = "󰎇"; + pub const ICON_UNKNOWN: &'static str = ""; pub fn name (&self) -> Option> { let indent = "".pad_to_width((self.depth - 1) * 2); let icon = self.icon(); @@ -44,13 +49,13 @@ impl Entry { } fn icon (&self) -> &'static str { if self.is_dir() { - "" //"+" + Self::ICON_DIRECTORY } else if self.is_img() { - "" + Self::ICON_IMAGE } else if self.is_mus() { - "" + Self::ICON_MUSIC } else { - "⁇" + Self::ICON_UNKNOWN } } //fn style (&self) -> Option