docs: Fix theme_name type (#1614)

This commit is contained in:
Andreas Johansson 2025-11-17 02:56:24 +01:00 committed by GitHub
parent 7de69d1dd1
commit 0e8b8761a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)