Skip to content

Commit

Permalink
Fix: Matugen Global themes (#592)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
paridhi089 and Jas-SinghFSU authored Dec 25, 2024
1 parent 8b69338 commit 6c14efd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/matugen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export async function generateMatugenColors(): Promise<MatugenColors | undefined
const contents = await bash(
`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()];
} catch (error) {
Expand Down

0 comments on commit 6c14efd

Please sign in to comment.