Add 'assign distinct color to new tab groups' setting - #14419
Draft
vkodithala wants to merge 1 commit into
Draft
Conversation
When enabled, each new tab group is automatically assigned the first color from the standard color palette (Red, Green, Yellow, Blue, Magenta, Cyan) not already in use by another group. If all colors are taken, it wraps back to Red. The setting is disabled by default, gated on FeatureFlag::GroupedTabs, and exposed in Settings > Appearance > Tabs as a toggle. It is also reachable from the Command Palette. Co-Authored-By: Oz <oz-agent@warp.dev>
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.
Description
Adds a new setting "Assign new tab groups a distinct color" (disabled by default), gated on
FeatureFlag::GroupedTabs. When enabled, each new tab group is automatically assigned the first color from the standard 6-color palette (Red, Green, Yellow, Blue, Magenta, Cyan) not already in use by another open group. When all colors are taken it wraps back to Red. This mirrors Chrome's tab group auto-color behavior.What changed
tab_settings.rs: Newtab_group_auto_colorbool setting (defaultfalse), synced to cloud, gated onGroupedTabsfeature flag, TOML pathappearance.tabs.tab_group_auto_color.tab_grouping.rs: Newpick_tab_group_colorhelper onWorkspacethat iteratesTAB_COLOR_OPTIONSand returns the first one not in use by an existing group. Applied innew_tab_group_from_selected_tabs.view.rs: Appliedpick_tab_group_colorinnew_tab_group_from_tab; addedTabGroupAutoColorevent arm to the exhaustiveTabSettingsChangedEventmatch; added the context flag.settings_view/mod.rs: AddedTAB_GROUP_AUTO_COLOR_FLAGcontext flag constant.settings_view/appearance_page.rs: AddedToggleTabGroupAutoColoraction, toggle handler,TabGroupAutoColorWidget(switch + description text), registered in the Tabs settings section gated onGroupedTabs, and wired up a Command Palette entry.Linked Issue
N/A
Testing
ready-to-specorready-to-implement.The setting is off by default and only visible when
GroupedTabsis enabled. When enabled, newly created tab groups get the first unused color from the palette automatically, making it easy to visually distinguish groups../script/runAgent Mode
Conversation: https://staging.warp.dev/conversation/e53d3a6b-9051-4357-adce-18252f08a9a8
Run: https://oz.staging.warp.dev/runs/019fa930-6389-725e-a5cd-00f36b095156
This PR was generated with Oz.