# ui: Implement hover color for scrollbar component \(\#25525\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 233b73b385e39fdacfc65e576de0ec425b4b97bb

Requested commit: 233b73b385e39fdacfc65e576de0ec425b4b97bb

Commit: 233b73b385e39fdacfc65e576de0ec425b4b97bb

Tree: db0180a6a60eb487d6d11b404006af1b4720ff0f

Author: Finn Evers

Committer: GitHub

## Message

```
ui: Implement hover color for scrollbar component (#25525)

This PR implements color changing for the scrollbar component based upon
user mouse interaction.


https://github.com/user-attachments/assets/2fd14e2d-cc5c-4272-906e-bd39bfb007e4


This PR also already adds the state for a scrollbar being actively
dragged. However, as themes currently do not provide a color for this
scenario, this implementation re-uses the hover color as a placeholder
instead. If this feature is at all wanted, I can quickly open up a
follow-up PR which adds support for that property to themes as well as
this component.

Release Notes:

- Added hover state to scrollbars outside of the editor.
```

## Parents

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

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