Repository navigation
メニューバーのアイコンを非表示にできるようにする - #52
Merged
Merged
Conversation
設定 `[display] show_menu_bar_icon` を正とし、NSStatusItem の表示をその派生物にする。 非表示にするとメニューから開く設定・一時停止・終了に届かなくなるため、設定ウィンドウの トグルで消したときだけ、復帰方法(アプリをもう一度起動すると設定ウィンドウが開く)を ダイアログで案内する。 トグルの表示同期に null ガードが無く、設定ウィンドウを一度も開かずに設定ファイルを 手編集するとアボートしていた。自動起動のトグルも同じ形だったのであわせて塞ぐ。 VRT に設定タブの行スタック全体(NSScrollView の documentView)を撮るケースを足す。 ペインの撮影は可視域だけを写すため、スクロールしないと見えない行を検証できない。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
背景
メニューバーのアイコンを常時出しておきたくない場合に消す手段が無い。ただしアイコンはメニューの唯一の入口で、消すと設定・一時停止・終了のすべてが到達不能になる。「非表示」の設定だけでは成立せず、復帰手段とセットで要る。
変更内容
[display] show_menu_bar_icon(既定true)を正とし、NSStatusItemの表示をその派生物にするNSScrollViewの documentView)を撮るケースを足す。ペインの撮影は可視域だけを写す仕様の注意点
NSStatusItem.visibleは AppKit が永続化するため、起動時は差分判定を挟まず設定の値をそのまま当てるCLIIP_SHOW_SHOW_MENU_BAR_ICONが値を固定していると、トグルを操作しても実効値は動かない。この場合はダイアログを出さず、トグルの表示を実効値へ戻す確認
cargo test(159 件)./scripts/visual_regression.sh(44 ケース ok)cargo fmt --check/cargo clippy --all-targets -- -D warnings./scripts/build_app_bundle.shfalseが書かれ、ダイアログが出る関連リンク