Repository navigation
v2.0.2
CAPS v2.0.2
The idle capsule has been redrawn — icons instead of labels, figures that hold their place — and it now reads whatever is behind it, so its text stays legible at any opacity. It also stops going off the screen, and stops stuttering when the panel opens.
Changed
- The idle row is four icon-led readings — processor, memory, download, upload — followed by the level meter. The text labels are gone: each icon carries the meaning visually, with the name and figure kept as its accessible label, which is what
icons.md › Best practicesasks of a custom interface icon. - Figures sit in fixed-width cells, flush against their own icon, and only ever grow rightwards. A number that changes length —
0 B/sbecoming1.02 MB/s— can no longer push the icons beside it around. Tabular figures keep the digits themselves still as well. - The five groups are laid out with equal air between them rather than as equal columns, which is what made the two percentages look stranded and the two rates cramped, and it stays even as the numbers change.
- The capsule samples the desktop behind it — one
BitBlt, a 12×8 grid over its own footprint — and picks its palette from that: white text over a dark backdrop, near-black over a light one, with the accent and the tints following. The larger area wins, and changing sides takes a clear majority on two consecutive samples, so sitting across a white document and a dark editor cannot make it flicker. At high opacity the capsule's own surface is what decides, under the same rule. - The opacity control reaches zero again, and stays readable there: the text no longer borrows its contrast from a surface the user is free to fade away. The component theme follows the same decision, so the search field's placeholder and the scrollbars are legible at any opacity too.
- The palette's grey half-tones are gone; hierarchy comes from size and weight instead, because a half-tone is the first thing a variable backdrop swallows.
- "Island" is gone: CAPS is the capsule. The settings row reads Capsule size / 胶囊大小, and state files written before the rename still load.
- Type now follows the size control with a 10 pt floor, so nothing renders below the desktop minimum at the smallest capsule.
Fixed
- The capsule could be dragged off the screen, where it could not be grabbed again. It now stays on the display it is on, and keeps doing so as it grows: the size control, the hover expansion and the panel opening all leave it in view.
- Opening and folding the panel stuttered. The backdrop sampler read the screen a point at a time, 108 times per sample, and each read synchronised with the compositor. It is one
BitBltnow, out of a buffer, and it never runs while the capsule is animating. - Transfer rates are capped at nine characters, so a figure can no longer grow past the cell reserved for it and land on the next icon.
- The trailing check marks on the two font rows are gone.
Contributor
CAPS v2.0.2
待机胶囊重画了:标签换成图标,数字不再推挤图标;它还会读取身后的桌面来决定文字颜色,任何透明度下都看得清。同时不再跑到屏幕外,展开收起也不再卡顿。
调整
- 待机行改成图标加数值:处理器、内存、下载、上传,最后是电平表。文字标签取消,含义由图标承担,名称与数值保留为无障碍标签——
icons.md › Best practices对自定义界面图标的要求正是如此。 - 数值放在固定宽度的格子里,紧贴自己的图标,只会向右生长。数字变长(
0 B/s变成1.02 MB/s)不会再推动旁边的图标;等宽数字让位数本身也不跳动。 - 五组之间改为等间距,而不是等宽列——这正是两个百分比显得空荡、两个速率挤在一起的原因,而且数字变化时依然均匀。
- 胶囊会采样身后的桌面(一次
BitBlt,覆盖自身范围的 12×8 网格),据此选择配色:深色背景用白字,浅色背景用近黑字,强调色与各项浅色随之切换。面积大的一方胜出;换边需要连续两次采样都占明显多数,因此同时横跨白色文档和深色编辑器也不会闪烁。不透明度较高时,由胶囊自身的表面决定,规则一致。 - 透明度可以重新调到 0,并且在 0 时依然可读:文字不再依赖用户随时可能淡掉的表面来获得对比度。组件主题会跟随同一判断,输入框占位符与滚动条在任何透明度下都清晰。
- 去掉配色中的灰色中间调;层级改由字号与字重承担——渐变的底色最先吞掉的正是中间调。
- 不再叫 "island":CAPS 就是 capsule。设置项改为 胶囊大小 / Capsule size,改名前的存档文件仍可正常读取。
- 字号跟随尺寸缩放,并保留 10 pt 下限,胶囊缩到最小时也不会低于桌面最小字号。
修复
- 胶囊可能被拖出屏幕,之后再也抓不回来。现在会始终留在所在显示器内,变大时同样如此:调整大小、悬停展开、面板弹出都不会越界。
- 展开与收起面板会卡顿:背景采样此前逐点读取屏幕,每次采样 108 次,而每次读取都要和合成器同步。现在改为一次
BitBlt从缓冲区取样,并且动画期间完全不采样。 - 传输速率最多九个字符,数字不会越过自己预留的格子压到下一个图标上。
- 去掉两行字体设置末尾的对勾。