This commit is contained in:
douboer
2025-09-07 12:39:28 +08:00
parent 1ba01e3c64
commit 4d033257fe
5714 changed files with 15866 additions and 1032 deletions

View File

@@ -42,3 +42,21 @@ READ_TIME_DAY = 60
# 注意:为安全起见,生产或开源仓库不要直接硬编码真实密钥,建议只保留 os.environ 读取逻辑。
DASHSCOPE_API_KEY = os.environ.get('DASHSCOPE_API_KEY', 'sk-2546da09b6d9471894aeb95278f96c11')
# ---------------- 字体配置 ----------------
# 可选字体列表(用户可在配置对话框中输入其一);若系统不存在则按回退顺序尝试。
FONT_CANDIDATES = [
'PingFang SC', # macOS 系统中文苹方 (简体)
'PingFang TC', # 繁体
'PingFang HK',
'PingFang', # 有些场景可能只暴露基名
'Fira Code',
'JetBrains Mono',
'Comic Mono',
'Input Sans',
]
# 当前使用的主字体(默认首选苹方简体),字体大小默认
FONT_FAMILY = os.environ.get('APP_FONT_FAMILY', 'PingFang SC')
FONT_SIZE = int(os.environ.get('APP_FONT_SIZE', '14'))