Use correct theme colors for project headers and thread items - #62597
Open
Robot-Inventor wants to merge 5 commits into
Open
Use correct theme colors for project headers and thread items#62597Robot-Inventor wants to merge 5 commits into
Robot-Inventor wants to merge 5 commits into
Conversation
Robot-Inventor
marked this pull request as draft
August 14, 2026 04:13
Robot-Inventor
marked this pull request as ready for review
August 14, 2026 10:51
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.
Objective
Threads Sidebarのヘッダーや
ThreadItemを選択した際とホバーした際の色が本来対応するテーマカラーではなくelement.activeになっています。これにより、Moonlightのような一部のテーマでは、スレッドを選択した際のテキストのコントラスト比が低くなっていました。既存のコードのコメントによれば、element.activeはクリックしたときなどに適用されるべきで、選択されたスレッドの背景色としては正しくありません。zed/crates/settings_content/src/theme.rs
Lines 634 to 638 in 0307288
Solution
ブランチピッカーやワークツリーピッカーの既存の実装を参考に、Threads Sidebarのヘッダーと
ThreadItemの選択状態の背景色をghost_element_selectedに、ホバーしたときの色をghost_element_hoverに、クリックしたときの色をghost_element_activeに変更することでテーマ変数の意図に沿った実装になるようにしました。Testing
変更済みのコードをビルドして、スレッドの配色が、ブランチピッカーのようなリストアイテムを選択するUIの配色と一致していることを確認しました。この変更は1つ以上のエージェントスレッドが存在している状態でThreads Sidebarを表示することでテストできます。
Self-Review Checklist:
Showcase
Release Notes: