Fix: Matugen Global themes (#592)

* Fix: Matugen Global themes

* Update src/services/matugen/index.ts

* Update src/services/matugen/index.ts

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
Paridhi Prisha Saikia
2024-12-25 08:43:04 +00:00
committed by GitHub
parent 8b69338da4
commit 6c14efd04b

View File

@@ -32,6 +32,7 @@ export async function generateMatugenColors(): Promise<MatugenColors | undefined
const contents = await bash( const contents = await bash(
`matugen image --dry-run -q ${wallpaperPath} -t scheme-${scheme_type.get()} --contrast ${normalizedContrast} --json hex`, `matugen image --dry-run -q ${wallpaperPath} -t scheme-${scheme_type.get()} --contrast ${normalizedContrast} --json hex`,
); );
await bash(`matugen image -q ${wallpaperPath} -t scheme-${scheme_type.get()} --contrast ${normalizedContrast}`);
return JSON.parse(contents).colors[options.theme.matugen_settings.mode.get()]; return JSON.parse(contents).colors[options.theme.matugen_settings.mode.get()];
} catch (error) { } catch (error) {