Repository navigation
Conversation
added 6 commits
October 24, 2026 17:15
- 新增 SystemResourceMonitor:CPU/内存/磁盘/网络/GPU 免 root 采样(host_processor_info、 host_statistics64、NET_RT_IFLIST2、IOBlockStorageDriver、IOAccelerator),面板可见期间 2s 轮询 - 新增 NowPlayingMonitor:MRNowPlayingRequest 类属性轮询(降级 osascript JXA), MRMediaRemoteSendCommand 播放控制(上一首/播放暂停/下一首) - 面板内容模块横排最多 2 个(日历→系统资源→正在播放),宽度随内容自适应(钳制 420–680) - 设置页:显示内容 3 开关(选满 2 个禁用其余)+ 资源项子配置;删除无效的不透明度滑块, 面板背景改用系统默认外观(玻璃不染色/磨砂不降 alpha) - Translations.json 同步增删文案;PITFALLS 记 DEV-019/020
- 设置页灵动岛新增最大宽度(420–1200)/最大高度(240–1000)滑杆; 双卡片时面板固定为最大尺寸、两卡片各占一半宽,单卡片按内容自然尺寸收缩 - 内容模块包圆角半透明卡片背景,双卡片内部列弹性适配(日历日程列表/资源行弹性伸缩) - 系统资源每行加迷你趋势 sparkline:Monitor 维护近 30 点(约 1 分钟)采样历史, 百分比项直读、速率项按窗口峰值归一化,面板收起时清空历史
- present() 用 NSHostingView 预测每张卡片自然尺寸(双卡片按拉伸宽测高) - 内容超出卡片槽位时按 slot/自然尺寸计算 scale(≤1) 整体等比缩小,完整显示 - 卡片背景仍填满槽位;移除资源行/日程列表弹性伸缩(由等比缩放接管) - 单卡片超限同步收缩面板尺寸;默认最大高度 560→600 容住日历自然高度 - 设置页与三语文案补充等比缩放说明
- 进度条:灰轨道=总量 100%,彩色填充=当前用量;磁盘/网络为速率无固定满格,保留趋势曲线 - 采样弹出时先建基线,0.4s 后快速补采一次,速率项(CPU/磁盘/网络)首值不再等 2s 固定间隔 - 设置页资源项文案同步更新(中/英/日)
- 系统资源卡双卡片时拉伸到驱动卡高度,各资源行平分剩余高度均匀分布 - 面板高度改为内容驱动(上限=设置最大高),消除等比缩放导致的顶部空白 - 日历日程区去掉 240pt 硬上限:装得下完整展开,装不下在剩余空间内滚动(文字不缩小) - 日程异步加载完成/切换选中日期后自适应重测面板高度(顶边贴刘海不动,同步 panelFrameTL) - 固定部分超限时才回退整体等比缩小兜底,缩放锚点改为顶部
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.
No description provided.