feat: add option to use system font

This commit is contained in:
Erzbir
2025-08-08 01:09:45 +08:00
parent 2db10f0bee
commit a87c97dd72
3 changed files with 16 additions and 2 deletions
+7 -2
View File
@@ -15,8 +15,9 @@
--line-theme-height: calc(var(--font-theme-size) * 1.54);
--radius-theme-default: 0;
--font-theme-default: 'JetBrains Mono';
--font-theme-fallback: Monaco, Consolas, -apple-system, BlinkMacSystemFont, 'segoe ui',
Roboto, Oxygen, Ubuntu, Cantarell, 'open sans', 'helvetica neue';
--font-theme-fallback: -apple-system, BlinkMacSystemFont, 'segoe ui', Roboto, Oxygen,
Ubuntu, Cantarell, 'open sans', 'helvetica neue', Arial, 'Noto Sans',
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
--scrollbar-theme-width: thin;
--scrollbar-theme-color: rgba(134, 134, 134, 0.45) rgba(255, 255, 255, 0);
--font-theme-lig: none;
@@ -31,6 +32,10 @@ html[pixel_style='true'] {
--font-theme-default: 'Fusion Pixel 12px P zh_hans';
}
html[system_font='true']:not([pixel_style='true']) {
--font-theme-default: var(--font-theme-fallback);
}
* {
scrollbar-width: var(--scrollbar-theme-width) !important;
scrollbar-color: var(--scrollbar-theme-color);