# theme: Add colors for minimap thumb and border \(\#30785\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4c396bcc91656c8a684064eaf11e32d63d946e6e

Requested commit: 4c396bcc91656c8a684064eaf11e32d63d946e6e

Commit: 4c396bcc91656c8a684064eaf11e32d63d946e6e

Tree: 31829726093d772f0f0bae1b7e68c541c43822c2

Author: Finn Evers

Committer: GitHub

## Message

```
theme: Add colors for minimap thumb and border (#30785)

A user on Discord reported an issue where the minimap thumb was fully
opaque:

<img
src="https://github.com/user-attachments/assets/5049c6a3-f89a-4ceb-9d1b-ec06e7fe9151"
height="300">

This can happen because the scrollbar and its thumb might not
neccessarily be transparent at all.

Thus, this PR adds the`minimap.thumb.background` and
`minimap.thumb.border` colors to themes so theme authors can specify
custom colors for both here.
Furthermore, I ensured that the minimap thumb background fallback value
can never be entirely opaque. The values were arbitrarily chosen to
avoid the issue from occuring whilst keeping currently working setups
working. With the new properties added, authors (and users) should be
able to avoid running into this issue altogether so I would argue for
this special casing to be fine. However, open to change it should a
different approach be preferrred.

Release Notes:

- Added `minimap.thumb.background` and `minimap.thumb.border` to themes
to customize the thumb color and background of the minimap.
- Fixed an issue where the minimap thumb could be opaque if the theme
did not specify a color for the thumb.
```

## Parents

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

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