Skip to content

generate 256 palette#11043

Open
jake-stewart wants to merge 1 commit intoEugeny:masterfrom
jake-stewart:master
Open

generate 256 palette#11043
jake-stewart wants to merge 1 commit intoEugeny:masterfrom
jake-stewart:master

Conversation

@jake-stewart
Copy link

Hi Tabby team,

I believe that terminals should generate the extended 256-color palette based on the user's base16 theme.

The rationale and approach is written up here.

This PR introduces a new generate256ColorPalette config option, enabled by default, which generates the colors 16-255 via interpolating the users base16 theme. No colors explicitly defined by the user are replaced.

The settings page is updated to allow toggling this functionality.

@jake-stewart
Copy link
Author

Closes #11040

@jake-stewart
Copy link
Author

This PR is not ready:

There is active discussion at the Ghostty repo about approaching this slightly differently.

The idea is that light themes should not invert the palette so that ansi 16 remains black. This is with the intention of removing the breaking change of generating by default. Then, an opt-in option for "harmonious" colors which inverts the colors for light themes since there are advantages for doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant