Use "One Dark" as default theme
This commit is contained in:
parent
92f2e8eb34
commit
0430e8fbf2
2 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,7 @@ fn main() {
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
|
|
||||||
let story_selector = args.story.clone();
|
let story_selector = args.story.clone();
|
||||||
let theme_name = args.theme.unwrap_or("Zed Pro Moonlight".to_string());
|
let theme_name = args.theme.unwrap_or("One Dark".to_string());
|
||||||
|
|
||||||
let asset_source = Arc::new(Assets);
|
let asset_source = Arc::new(Assets);
|
||||||
gpui::App::production(asset_source).run(move |cx| {
|
gpui::App::production(asset_source).run(move |cx| {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
use crate::one_themes::one_dark;
|
||||||
use crate::{Theme, ThemeRegistry};
|
use crate::{Theme, ThemeRegistry};
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use gpui::{px, AppContext, Font, FontFeatures, FontStyle, FontWeight, Pixels};
|
use gpui::{px, AppContext, Font, FontFeatures, FontStyle, FontWeight, Pixels};
|
||||||
|
@ -129,7 +130,7 @@ impl settings::Settings for ThemeSettings {
|
||||||
buffer_line_height: defaults.buffer_line_height.unwrap(),
|
buffer_line_height: defaults.buffer_line_height.unwrap(),
|
||||||
active_theme: themes
|
active_theme: themes
|
||||||
.get(defaults.theme.as_ref().unwrap())
|
.get(defaults.theme.as_ref().unwrap())
|
||||||
.or(themes.get("Zed Pro Moonlight"))
|
.or(themes.get(&one_dark().name))
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue