From d839bf714c19f1aa96557626d8da5b877c9b1296 Mon Sep 17 00:00:00 2001 From: JSR Date: Wed, 18 Mar 2026 22:25:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DiOS=E6=A8=A1=E6=8B=9F?= =?UTF-8?q?=E5=99=A8=E4=B8=AD=E6=96=87=E5=AD=97=E4=BD=93=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 ++ src/assets/main.css | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 3dd3efe..14bd2aa 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -181,6 +181,8 @@ function MainContent(): React.JSX.Element { algorithm: isDark ? antTheme.darkAlgorithm : antTheme.defaultAlgorithm, token: { colorPrimary: brandColor, + fontFamily: + '"PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"', }, }} > diff --git a/src/assets/main.css b/src/assets/main.css index 718a001..f850701 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,5 +1,12 @@ @import "antd/dist/reset.css"; +:root { + --ss-font-family: + "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans SC", "Noto Sans CJK SC", + "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; +} + html, body, #root { @@ -9,11 +16,20 @@ body, overflow: hidden; user-select: none; background: var(--ss-bg-color, #f5f5f5); + font-family: var(--ss-font-family); + -webkit-text-size-adjust: 100%; + text-size-adjust: 100%; } input, textarea { user-select: text; + font-family: var(--ss-font-family); +} + +button, +select { + font-family: var(--ss-font-family); } .ss-sidebar {