docs: Fix theme_name type (#1614)
This commit is contained in:
parent
7de69d1dd1
commit
0e8b8761a4
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ use gpui::{App, SharedString};
|
|||
use gpui_component::{Theme, ThemeRegistry};
|
||||
|
||||
pub fn init(cx: &mut App) {
|
||||
let theme_name = "Ayu Light";
|
||||
let theme_name = SharedString::from("Ayu Light");
|
||||
// Load and watch themes from ./themes directory
|
||||
if let Err(err) = ThemeRegistry::watch_dir(PathBuf::from("./themes"), cx, move |cx| {
|
||||
if let Some(theme) = ThemeRegistry::global(cx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue