feat: add system-ui font selection to desktop app (#1109)

Signed-off-by: Aaron Ruan <aaron212cn@outlook.com>
This commit is contained in:
Aaron Ruan 2024-10-24 17:46:42 +08:00 committed by GitHub
parent 8532257f5c
commit 841126cfac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@ const useFontDataElectron = () => {
queryKey: ["systemFonts"],
})
return [{ label: FALLBACK_FONT, value: "inherit" }].concat(
return [
{ label: FALLBACK_FONT, value: "inherit" },
{ label: "System UI", value: "system-ui" },
].concat(
(data || []).map((font) => ({
label: font,
value: font,