# ui: Remove support for unnecessary Switch colors \(\#44388\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a8b61c5ffad3eac7f0855654e8a64214d5bd96e9

Requested commit: a8b61c5ffad3eac7f0855654e8a64214d5bd96e9

Commit: a8b61c5ffad3eac7f0855654e8a64214d5bd96e9

Tree: 250095cb1795a47b83f2fe40e0e0df8b40ec2af2

Author: Danilo Leal

Committer: GitHub

## Message

```
ui: Remove support for unnecessary Switch colors (#44388)

This PR removes the default, error, warning, and success color variants
from the `SwitchColor` enum. In the most YAGNI spirit, I think we'll
probably never want to use these colors for the switch, so there's no
reason to support them. And if we ever want to do it, we can re-add
them.

I also took the opportunity to change the default color to be "accent",
which is _already_ what we use for all instances of this component, so
there's no need to have to define it every time. This effectively makes
the enum support only "accent" and "custom", which I think is okay for
now if we ever need an escape hatch before committing to supporting new
values.

Release Notes:

- N/A
```

## Parents

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

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