mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
修复iOS数据库连接并增强中文字体兼容
This commit is contained in:
@@ -121,7 +121,7 @@ pub fn setup_app(app: &mut App) -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
fn setup_database(app: &mut App) -> Result<(), Box<dyn std::error::Error>> {
|
||||
let handle = app.handle().clone();
|
||||
let db_path = if cfg!(debug_assertions) {
|
||||
let db_path = if cfg!(all(debug_assertions, desktop)) {
|
||||
std::path::PathBuf::from("data.sql")
|
||||
} else {
|
||||
let app_data_dir = handle
|
||||
|
||||
+15
-3
@@ -2,9 +2,11 @@
|
||||
|
||||
: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";
|
||||
"PingFang SC", "PingFangTC-Regular", "Hiragino Sans GB", "Hiragino Sans",
|
||||
"STHeiti", "Heiti SC", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC",
|
||||
"Microsoft YaHei UI", "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont,
|
||||
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji",
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
html,
|
||||
@@ -32,6 +34,16 @@ select {
|
||||
font-family: var(--ss-font-family);
|
||||
}
|
||||
|
||||
.ant-typography,
|
||||
.ant-btn,
|
||||
.ant-input,
|
||||
.ant-input-affix-wrapper,
|
||||
.ant-select,
|
||||
.ant-select-selection-item,
|
||||
.ant-message-notice-content {
|
||||
font-family: var(--ss-font-family) !important;
|
||||
}
|
||||
|
||||
.ss-sidebar {
|
||||
color: var(--ss-sidebar-text, var(--ss-text-main));
|
||||
}
|
||||
|
||||
@@ -774,8 +774,7 @@ export const OOBE: React.FC<oobeProps> = ({ visible, onComplete }) => {
|
||||
maxWidth: "90vw",
|
||||
boxShadow: isDark ? "0 8px 32px rgba(0, 0, 0, 0.3)" : "0 8px 32px rgba(0, 0, 0, 0.1)",
|
||||
border: isDark ? "1px solid rgba(255, 255, 255, 0.08)" : "1px solid rgba(0, 0, 0, 0.06)",
|
||||
fontFamily:
|
||||
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
|
||||
fontFamily: "var(--ss-font-family)",
|
||||
}}
|
||||
>
|
||||
{contextHolder}
|
||||
|
||||
Reference in New Issue
Block a user