Sfoglia il codice sorgente

feat(theme): add Definitions.icons to EZA_ICONS string

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Sandro-Alessio Gierens 1 anno fa
parent
commit
41380634a6
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 4 1
      src/options/theme.rs
  2. 1 0
      src/theme/mod.rs

+ 4 - 1
src/options/theme.rs

@@ -55,7 +55,10 @@ impl Definitions {
         let exa = vars
         let exa = vars
             .get_with_fallback(vars::EZA_COLORS, vars::EXA_COLORS)
             .get_with_fallback(vars::EZA_COLORS, vars::EXA_COLORS)
             .map(|e| e.to_string_lossy().to_string());
             .map(|e| e.to_string_lossy().to_string());
-        Self { ls, exa }
+        let icons = vars
+            .get(vars::EZA_ICONS)
+            .map(|e| e.to_string_lossy().to_string());
+        Self { ls, exa, icons }
     }
     }
 }
 }
 
 

+ 1 - 0
src/theme/mod.rs

@@ -46,6 +46,7 @@ pub enum UseColours {
 pub struct Definitions {
 pub struct Definitions {
     pub ls: Option<String>,
     pub ls: Option<String>,
     pub exa: Option<String>,
     pub exa: Option<String>,
+    pub icons: Option<String>,
 }
 }
 
 
 pub struct Theme {
 pub struct Theme {