feat: 外観のライト/ダーク/システム準拠を設定から選択可能に#75
Merged
Merged
Conversation
NSApp.appearance の上書き(nil = システム準拠)で実現。設定(⌘,)の 一般タブ先頭に「外観」ピッカーを追加し、変更は即時反映・UserDefaults に永続化。 外観確定後に Dock アイコンの自動追従(AppIconController)を再適用する。
sasagar
added a commit
that referenced
this pull request
Jul 7, 2026
NSApp.appearance の上書き(nil = システム準拠)で実現。設定(⌘,)の 一般タブ先頭に「外観」ピッカーを追加し、変更は即時反映・UserDefaults に永続化。 外観確定後に Dock アイコンの自動追従(AppIconController)を再適用する。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
設定(⌘,)> 一般 の先頭に「外観」ピッカー(システムに合わせる / ライト / ダーク)を追加。
実装
AppearanceController.swift:AppAppearanceMode(system/light/dark) +@MainActorシングルトン。apply()がNSApp.appearanceを上書き(system は nil)。既存AppIconControllerのパターンに準拠UserDefaults(appAppearanceMode)に永続化し起動時に適用AppIconController.shared.apply()を呼び、Dock アイコンの「自動」判定(effectiveAppearance 基準)を追従させるNSColor(name:dynamicProvider:))は appearance 上書きに自動追従するため追加対応なし検証(実機・AX 自動操作、システム外観=ライトの環境)
xcodegen generate+xcodebuild→ BUILD SUCCEEDED(Swift 6 strict concurrency、警告なし)