Add per-model tray icon color customization#59
Open
watatatata810 wants to merge 1 commit into
Open
Conversation
Tray badge colors were fixed and hard to see in some environments. Users can now pick a custom background/text color per model (Claude Code, Codex, Antigravity) via the tray context menu, backed by the native Windows color picker, with a Reset to Default option.
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.
Summary
ChooseColorW), with a "Reset to Default" to restore the original gradient/branding colors.settings.json; when not set, behavior is unchanged from the current gradient-based coloring.Implementation notes
IconColorOverride { background, text }threads throughtray_icon::create_icon/add/update/sync; when present it replaces the usage-based fill/text/outline colors with the flat user-chosen colors (no staged/gradient coloring for overridden icons, per design intent — just a direct override).SettingsFile/AppStatepattern (hex-encoded strings,#[serde(default)]for backward compatibility with older settings.json files).Stringsfields across all 10 locales. English and Japanese are hand-translated; the other 8 are best-effort/machine-quality translations — native-speaker review welcome before merge.windowscrate'sWin32_UI_Controls_Dialogsfeature (no new external dependency) for the native color picker, with aWM_INITDIALOGhook to relabel each dialog's title bar ("Background Color" / "Text Color") so users can tell the two prompts apart.Test plan
cargo buildandcargo clippyclean (no new warnings)