@@ -7,13 +7,15 @@ pub mod musashi;
77pub mod obsidian;
88pub mod slate_portfolio;
99pub mod terminal_candy;
10+ pub mod typewriter;
1011
1112pub use dark_minimal:: DarkMinimalTheme ;
1213pub use minimal_retro:: MinimalRetroTheme ;
1314pub use musashi:: MusashiTheme ;
1415pub use obsidian:: ObsidianTheme ;
1516pub use slate_portfolio:: SlatePortfolioTheme ;
1617pub use terminal_candy:: TerminalCandyTheme ;
18+ pub use typewriter:: TypewriterTheme ;
1719
1820#[ derive( Debug , Clone , Serialize , Deserialize ) ]
1921pub struct ThemeInfo {
@@ -60,6 +62,9 @@ pub fn get_all_themes() -> HashMap<String, Box<dyn Theme>> {
6062 let slate_portfolio = SlatePortfolioTheme :: new ( ) ;
6163 themes. insert ( "slate-portfolio" . to_string ( ) , Box :: new ( slate_portfolio) ) ;
6264
65+ let typewriter = TypewriterTheme :: new ( ) ;
66+ themes. insert ( "typewriter" . to_string ( ) , Box :: new ( typewriter) ) ;
67+
6368 themes
6469}
6570
@@ -72,6 +77,7 @@ pub fn get_theme(name: &str) -> Option<Box<dyn Theme>> {
7277 "dark-minimal" => Some ( Box :: new ( DarkMinimalTheme :: new ( ) ) as Box < dyn Theme > ) ,
7378 "musashi" => Some ( Box :: new ( MusashiTheme :: new ( ) ) as Box < dyn Theme > ) ,
7479 "slate-portfolio" => Some ( Box :: new ( SlatePortfolioTheme :: new ( ) ) as Box < dyn Theme > ) ,
80+ "typewriter" => Some ( Box :: new ( TypewriterTheme :: new ( ) ) as Box < dyn Theme > ) ,
7581 _ => None ,
7682 }
7783}
0 commit comments