Skip to content

昼の空を季節ごとに描き分け、正午の季節の違いを見分けられるようにする - #81

Merged
HR0101 merged 1 commit into
mainfrom
fix/issue-65-daytime-season-sky
Oct 15, 2026
Merged

HR0101 merged 1 commit into
mainfrom
fix/issue-65-daytime-season-sky

Conversation

@HR0101

@HR0101 HR0101 commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

概要

昼の空の基本色を季節ごとに設計し直し、正午でも季節の違いがはっきり分かるようにします。

Closes #65

このPRは #80(#70)の上に積んでいます。

原因

  • 季節の色を混ぜる割合が10〜13%と小さく、空の下端にはその6割しか混ぜていませんでした。
  • 背景は色数を量子化して描くため、わずかな差は同じ段階に丸められ、さらに見えにくくなっていました。

変更内容

混ぜる割合を上げるのではなく、昼のキーフレーム(日の出の1時間30分後、南中の1時間前と3時間後)に季節ごとの空の色を持たせました。

季節 印象 正午ごろの上端(概算) 正午ごろの下端(概算)
春 かすみがかった淡い空。地平線は桃色を帯びた白 (133, 177, 236) (244, 231, 235)
夏 濃く高い青。最も鮮やか (42, 151, 249) (190, 232, 249)
秋 夏より紫に寄った、澄んだ深い青 (84, 126, 228) (215, 224, 235)
冬 低く白っぽい空。最も淡い (162, 192, 218) (231, 236, 239)

正午の空の色差(ΔE、上端と下端の平均。変更後は手元の計算による概算で、テストでは実際の配色で10以上を確かめています)

組み合わせ 変更前 変更後
春と夏 6.17 22.6
春と秋 3.14 20.8
春と冬 0.82 12.7
夏と秋 8.37 12.7
夏と冬 5.71 29.1
秋と冬 3.73 27.9

確認

  • chore: 季節だけを切り替えて確認できるDebug起動引数と比較テストを追加する #72 で既知の問題として記録していたseasonsLookDifferentAtNoonからwithKnownIssueを外し、すべての組み合わせでΔE 10以上になることを確認
  • daytimeSkyShowsEachSeasonsCharacterを追加。正午の空の鮮やかさが夏・秋・春・冬の順に下がり、冬が最も白っぽく明るい。春の地平線は桃色のかすみ、冬は冷たい白
  • 既存のコントラスト総当たりテスト(24時間×四季、5日おき×24時間)がすべて通ることを確認
  • BusTimeWidgetExtensionを警告をエラーにした設定でビルド
  • python3 Scripts/generate_l10n.py --check
  • 四季×8時刻の背景をImageRendererで書き出して目視確認

既知の失敗(この変更とは無関係)

weekendKeepsTheNoticeAndStillShowsWeekdayTimesはmainでも失敗しています。

関連

🤖 Generated with Claude Code

https://claude.ai/code/session_01ATcUWKWDs87zwTrKyiKpY4

季節の色を10〜13%混ぜるだけだったため、正午の空は春・秋・冬がほぼ同じ色
(季節どうしの色差ΔEが0.8〜8.4)になっていた。

- 昼のキーフレーム(日の出1.5時間後、南中の1時間前と3時間後)に、季節ごとの
  空の色を持たせる
  - 春: かすみがかった淡い空。地平線は桃色を帯びた白
  - 夏: 濃く高い青。最も鮮やか
  - 秋: 夏より紫に寄った、澄んだ深い青
  - 冬: 低く白っぽい空。最も淡い
- 季節ごとの色を持つ時間帯は、一律の季節の色を混ぜない
- 正午の季節どうしの色差がΔE 10以上になったため、#72 で既知の問題として
  記録していた比較テストを通常のテストにする

Refs #65

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ATcUWKWDs87zwTrKyiKpY4
@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 90e096b2-26df-4a0c-8940-6212dc21bd87

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@HR0101

HR0101 commented Oct 15, 2026

Copy link
Copy Markdown
Owner Author

CIの補足です。testAccessibilityAuditがAudit failed to complete in time(監査の時間切れ)で失敗した回がありました。監査の指摘ではなく時間切れです。失敗したジョブを再実行すると、失敗したXcodeのバージョンが入れ替わりました(#80は16.2で失敗→再実行で成功し、16.4で失敗。#81は16.2で失敗→再実行で成功)。同じ変更を含む #82〜#86 と、手元のiPhone 16(iOS 18.5)でのUIテストでは成功しています。それ以外の失敗は、mainでも失敗しているweekendKeepsTheNoticeAndStillShowsWeekdayTimesだけです。

@HR0101
HR0101 changed the base branch from fix/issue-70-continuous-seasons to main October 15, 2026 12:02
@HR0101
HR0101 merged commit f89d064 into main Oct 15, 2026
7 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ux: 昼の空で季節の違いがほぼ見分けられない(春・秋・冬の正午がほぼ同色)

1 participant