# Deduplicate tab theme related code · gitcafe/zed

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

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

Visibility: public

Requested revision: 81ece4fd44cc4153e1e3514e352382ef83cba284

Requested commit: 81ece4fd44cc4153e1e3514e352382ef83cba284

Commit: 81ece4fd44cc4153e1e3514e352382ef83cba284

Tree: ceda9df83826df5c06665ce74ccabf9ceda6235d

Author: Petros Amoiridis

Committer: Petros Amoiridis

## Message

```
Deduplicate tab theme related code

We've noticed that the search theme struct had two fields for a tab icon width and spacing. But we already have those in the tab theme struct. We decided to remove the duplicate and reuse the tab fields.

We also wanted to move where the spacing is being used. Instead of doing it at the left of the label, we do it at the right of the icon to match how it is done in other areas of the UI.

Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com>

```

## Parents

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

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