feat: 默认外观改为深色主题(微软雅黑 / 常规 / 15pt / 白字 / #121212 背景) - #281
Open
James-ctrl-Doyle wants to merge 1 commit into
Open
James-ctrl-Doyle wants to merge 1 commit into
James-ctrl-Doyle wants to merge 1 commit into
Conversation
- 默认字体由 Segoe UI Light 14pt 改为 微软雅黑 15pt(小三),字形由 FW_LIGHT 改为 FW_NORMAL(常规) - 正文与章节文字默认颜色由黑色改为白色 - 默认背景色由 #FFFFFF 改为 #121212,与白字构成深色阅读主题 - 字体名以 \u 转义书写,保持本文件为纯 ASCII,避免源码字符集导致的解析问题 说明:仅改变「新用户 / 恢复默认配置」时的默认值,已有配置文件不受影响。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这个 PR 做了什么
把新用户(首次运行)默认的阅读外观改为深色主题,只动
Cache::default_header()里的默认值:FW_LIGHT(细体)FW_NORMAL(常规)#FFFFFF#121212影响范围
一处实现细节
中文字体名使用
\u转义书写:这样
Cache.cpp保持纯 ASCII,避免在代码页 936 的编译器下因源码字符集产生的解析问题(项目里MobiBook.h就曾踩过这个坑)。测试情况
font_color = 0xFFFFFF、bg_color = 0x121212、字体名微软雅黑、lfWeight = 400、lfHeight = -25(125% 缩放下 15pt)