# Add \`text_color\` helper for tab contents \(\#14737\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/24d937474444f391961724dbae07ce7d8ff887b6)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 24d937474444f391961724dbae07ce7d8ff887b6

Requested commit: 24d937474444f391961724dbae07ce7d8ff887b6

Commit: 24d937474444f391961724dbae07ce7d8ff887b6

Tree: 04bc5804f1f7bb70572a8f540df60dd421bbe5b4

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add `text_color` helper for tab contents (#14737)

This PR adds a `text_color` method to `TabContentParams` to more easily
compute the text color to be used for tab contents.

This consolidates a number of conditionals that were scattered all over
the place to give us a singular source of truth for these colors.

Release Notes:

- N/A
```

## Parents

- [5d751f232c4d2387e41050e24b9fc7cbed26bbcd](https://git.cafe/gitcafe/zed/commit/5d751f232c4d2387e41050e24b9fc7cbed26bbcd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/24d937474444f391961724dbae07ce7d8ff887b6?format=markdown)
