# ui: Add \`\.color\` method to the Switch \(\#29074\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bfb2ed3824e41ad1a716692a6e7cd14dd87e9e8a

Requested commit: bfb2ed3824e41ad1a716692a6e7cd14dd87e9e8a

Commit: bfb2ed3824e41ad1a716692a6e7cd14dd87e9e8a

Tree: 522305398b12b745f34c757be0a1a2a049e787cb

Author: Danilo Leal

Committer: GitHub

## Message

```
ui: Add `.color` method to the Switch (#29074)

This allows to pass, for example, `.color(SwitchColor::Accent)` to the
Switch component and have it render differently.

<img
src="https://github.com/user-attachments/assets/c60bac8a-c5ae-4693-912a-c754e5081f45"
width="550"/>

Release Notes:

- N/A
```

## Parents

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

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