Add additional themes, update theme importer
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::{zed_pro_family, ThemeFamily, ThemeVariant};
|
||||
use crate::{all_imported_themes, zed_pro_family, ThemeFamily, ThemeVariant};
|
||||
use anyhow::{anyhow, Result};
|
||||
use gpui::SharedString;
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
@@ -42,7 +42,10 @@ impl Default for ThemeRegistry {
|
||||
themes: HashMap::default(),
|
||||
};
|
||||
|
||||
this.insert_theme_families([zed_pro_family()]);
|
||||
let mut all_themes = vec![zed_pro_family()];
|
||||
all_themes.extend(all_imported_themes());
|
||||
|
||||
this.insert_theme_families(all_themes);
|
||||
|
||||
this
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,12 +1,23 @@
|
||||
|
||||
mod andromeda;
|
||||
mod ayu;
|
||||
mod andromeda;
|
||||
mod dracula;
|
||||
mod gruvbox;
|
||||
mod nord;
|
||||
mod notctis;
|
||||
mod ayu;
|
||||
mod gruvbox;
|
||||
|
||||
pub use andromeda::*;
|
||||
pub use ayu::*;
|
||||
pub use andromeda::*;
|
||||
pub use dracula::*;
|
||||
pub use gruvbox::*;
|
||||
pub use nord::*;
|
||||
pub use notctis::*;
|
||||
pub use ayu::*;
|
||||
pub use gruvbox::*;
|
||||
|
||||
|
||||
use crate::ThemeFamily;
|
||||
|
||||
pub(crate) fn all_imported_themes() -> Vec<ThemeFamily> {
|
||||
vec![andromeda(), dracula(), nord(), notctis(), ayu(), gruvbox()]
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user