1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

sync-color-schemes: gogh schema changed slightly

This commit is contained in:
Wez Furlong 2024-01-27 11:35:26 -07:00
parent f30ea0a6eb
commit dd039402da
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -45,14 +45,9 @@ pub struct GoghTheme {
impl GoghTheme {
pub fn load_all(slice: &[u8]) -> anyhow::Result<Vec<ColorSchemeFile>> {
#[derive(Deserialize, Debug)]
struct Themes {
themes: Vec<GoghTheme>,
}
let data: Themes = serde_json::from_slice(slice)?;
let data: Vec<GoghTheme> = serde_json::from_slice(slice)?;
let mut schemes = vec![];
for s in data.themes {
for s in data {
let cursor = RgbaColor::try_from(s.cursorColor)?;
let name = s.name;
let background = RgbaColor::try_from(s.background)?;