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:
committed by
GitHub
parent
8b69338da4
commit
6c14efd04b
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user