Add additional themes, update theme importer
This commit is contained in:
parent
3940e02a73
commit
c47c64184c
13 changed files with 1479 additions and 1383 deletions
|
@ -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()]
|
||||
}
|
||||
|
||||
|
18
crates/theme2/src/themes/nord.rs
Normal file
18
crates/theme2/src/themes/nord.rs
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue