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:
parent
f30ea0a6eb
commit
dd039402da
@ -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)?;
|
||||
|
Loading…
Reference in New Issue
Block a user