Repository navigation
Conversation
- 新增高占用排行条数设置(6 / 10 / 15 项),作用于 CPU 与内存弹窗的“按应用汇总” - 新增菜单栏 CPU 温度读数模式(平均温度 / 最高温度,默认平均温度),减少瞬时峰值跳动 - 新增“合并显示温度与风扇”开关,同时开启两项时在菜单栏上下两行紧凑展示,节省横向空间 - 同步更新设置云同步文档、中英文文案及单元测试
Author
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.
Closes #16
Closes #17
改动说明
自定义高占用排行条数([功能建议] 支持自定义 CPU 和内存占用排行列表的显示数量 #16)
AppSettings中新增topAppsCount(可选6 / 10 / 15,默认6),在「设置 → 菜单栏 → 其他」中提供切换。max(10, topAppsCount),避免详情页条数少于弹窗)。AppController.observeModel()监听变化并自动刷新弹窗高度。菜单栏 CPU 温度支持平均温度 / 最高温度切换([功能建议] 菜单栏温度与风扇支持合并上下显示,且温度建议支持显示平均温度 #17)
MenuBarTemperatureMode(.average平均温度 /.maximum最高温度,默认.average),利用TemperatureSummary.average避免单核瞬时突发导致菜单栏数字剧烈跳动。菜单栏温度与风扇支持合并上下显示([功能建议] 菜单栏温度与风扇支持合并上下显示,且温度建议支持显示平均温度 #17)
combineTemperatureAndFan开关(默认关闭,保持原有布局不变),当「CPU 温度」和「风扇转速」同时开启时生效。MenuBarRenderer中新增thermalCombinedSegment,以 9pt 等宽数字上下两行渲染(上温度、下转速,固定防抖宽度,与网速双行排版保持一致),支持右对齐及居中风格。云同步、本地化与单测
SettingsDocument同步新增三个可选字段,保持与旧版文档的向后兼容。Translations.swift中补齐所有新增文案的英文译文。OpenStatsUITests.swift中补充持久化、云同步、温度取值模式及合并渲染宽度的单元测试。