# Add \`selected_icon\` to \`IconButton\` \(\#3477\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4f507756d6f81642b176924b63d4906d92fbf5fe

Requested commit: 4f507756d6f81642b176924b63d4906d92fbf5fe

Commit: 4f507756d6f81642b176924b63d4906d92fbf5fe

Tree: f64e946b232d900fc5d75c67bef23726f138c37a

Author: Marshall Bowers

Committer: GitHub

## Message

```
Add `selected_icon` to `IconButton` (#3477)

This PR adds a new `selected_icon` method to `IconButton`.

This can be used to set a different icon that should be rendered when
the `IconButton` is selected.

Release Notes:

- N/A
```

## Parents

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

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

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