mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-23 08:39:24 -05:00
feat(fontLoader): added the option to disable it on codeblocks (#154)
* feat(fontLoader): added the option to disable it on codeblocks * feat(fontLoader): added the option to disable it on codeblocks
This commit is contained in:
parent
8ae70c490c
commit
037685bd2b
1 changed files with 6 additions and 1 deletions
|
@ -91,7 +91,7 @@ const applyFont = async (fontFamily: string) => {
|
||||||
--font-primary: '${fontFamily}', sans-serif !important;
|
--font-primary: '${fontFamily}', sans-serif !important;
|
||||||
--font-display: '${fontFamily}', sans-serif !important;
|
--font-display: '${fontFamily}', sans-serif !important;
|
||||||
--font-headline: '${fontFamily}', sans-serif !important;
|
--font-headline: '${fontFamily}', sans-serif !important;
|
||||||
--font-code: '${fontFamily}', monospace !important;
|
${settings.store.applyOnClodeBlocks ? "--font-code: '${fontFamily}', monospace !important;" : ""}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -185,6 +185,11 @@ const settings = definePluginSettings({
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
},
|
||||||
|
applyOnClodeBlocks: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
description: "Apply the font to code blocks",
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue