gpui-component/crates/ui/src
Copilot 08b5013b36
theme: Update scrollbar background color to transparent for all themes. (#1421)
## Problem

When scrolling quickly, a distracting background color was appearing in
the scrollbar area, as shown below:

<img
src="https://github.com/user-attachments/assets/c9ebe200-a6b2-47ca-992d-ceaa5ed3db04">

## Root Cause

Several theme files had scrollbar background colors configured with
partial transparency (alpha values like `33`, `44`, `80`, etc.) instead
of full transparency (`00`). This caused a semi-transparent background
to become visible during fast scrolling, creating an unwanted visual
artifact.

## Solution

Updated all `scrollbar.background` color values to use full transparency
by setting the alpha channel to `00`. This ensures the scrollbar
background is completely invisible across all themes, with only the
scrollbar thumb (the draggable indicator) remaining visible.

## Changes

Modified 7 theme files with non-transparent scrollbar backgrounds:

- **alduin.json**: `#28282833` → `#28282800`
- **hybrid.json**: `#E0E0E044` → `#E0E0E000`, `#1D1F2144` → `#1D1F2100`
- **jellybeans.json**: `#26262633` → `#26262600`
- **mellifluous.json**: `#fafafa33` → `#fafafa00`
- **molokai.json**: `#FEFAF933` → `#FEFAF900`
- **solarized.json**: `#EEE8D533` → `#EEE8D500`, `#002b3633` →
`#002b3600`
- **default-theme.json**: `#fafafa80` → `#fafafa00`, `#17171780` →
`#17171700`

All other themes already had transparent scrollbar backgrounds and
remain unchanged.

## Impact

- Eliminates the visual glitch where a background color appears during
fast scrolling
- Provides a consistent, clean scrollbar appearance across all 20 themes
plus the default theme
- No functional changes to scrollbar behavior - only visual appearance
- Total of 37 scrollbar.background entries now fully transparent

Fixes the issue reported by @huacnlee in the comments.





<issue_title>A different background color appears when the scroll bar
scrolls quickly</issue_title>
&gt;<issue_description>A different background color appears when the
scroll bar scrolls quickly
&gt; 
&gt;<img
src="https://github.com/user-attachments/assets/c9ebe200-a6b2-47ca-992d-ceaa5ed3db04"></issue_description>
&gt; 
&gt;<agent_instructions>Make change to update scrollbar background color
to transparent for all themes.</agent_instructions>
&gt; 
&gt; ## Comments on the Issue (you are @copilot in this section)
&gt; 
&gt;<comments>
&gt;<comment_new><author>@huacnlee</author>
&gt; That is the scrollbar background color. I am still on to consider
removing that color.</comment_new>
&gt;</comments>
&gt;

Fixes longbridge/gpui-component#1402

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> 
> ----
> 
> *This section details on the original issue you should resolve*
> 
> <issue_title>A different background color appears when the scroll bar
scrolls quickly</issue_title>
> <issue_description>A different background color appears when the
scroll bar scrolls quickly
> 
> <img width="1338" height="387" alt="Image"
src="https://github.com/user-attachments/assets/c9ebe200-a6b2-47ca-992d-ceaa5ed3db04"
/></issue_description>
> 
> <agent_instructions>Make change to update scrollbar background color
to transparent for all themes.</agent_instructions>
> 
> ## Comments on the Issue (you are @copilot in this section)
> 
> <comments>
> <comment_new><author>@huacnlee</author><body>
> That is the scrollbar background color. I am still on to consider
removing that color.</body></comment_new>
> </comments>
> 


</details>

Fixes longbridge/gpui-component#1402

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute
survey](https://survey3.medallia.com/?EAHeSx-AP01bZqG0Ld9QLQ).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: huacnlee <5518+huacnlee@users.noreply.github.com>
2025-10-23 18:13:33 +08:00
..
avatar theme: Improve theme color fallbacks based on base colors. (#1069) 2025-07-17 11:43:40 +08:00
button button: Support specified anchor to dropdown button (#1367) 2025-10-14 11:19:22 +08:00
chart plot(line_chart): Add missing natural stroke style (#1366) 2025-10-14 09:40:10 +08:00
dock Bump gpui (#1324) 2025-10-03 14:32:29 +08:00
highlighter highlighter: Make SyntaxHighlighter::styles method public for external use (#1415) 2025-10-23 10:34:13 +08:00
input input: Fix may flash scroll when move cursor in auto grow mode. (#1419) 2025-10-23 17:43:33 +08:00
list tree: Add Tree. (#1373) 2025-10-15 18:39:47 +08:00
menu tree: Add Tree. (#1373) 2025-10-15 18:39:47 +08:00
plot plot: Add StepAfter kind to StokeStrike (#1356) 2025-10-13 09:59:51 +08:00
resizable Bump gpui (#1324) 2025-10-03 14:32:29 +08:00
scroll scrollbar: Fix scroll to show mode. (#1381) 2025-10-15 05:51:13 +00:00
sidebar list: Update ListItem and DropdownListItem style. (#1095) 2025-07-28 18:38:39 +08:00
tab tab_bar: Let normal/active tab has same border to avoid flash on active change. (#1327) 2025-10-03 16:30:28 +08:00
table tree: Add Tree. (#1373) 2025-10-15 18:39:47 +08:00
text chore: Update dependencies to smol = 2 (#1404) 2025-10-21 10:56:48 +08:00
theme theme: Update scrollbar background color to transparent for all themes. (#1421) 2025-10-23 18:13:33 +08:00
time chore: Disable tab stop for some popover elements. (#1306) 2025-09-29 18:11:25 +08:00
accordion.rs accordion: Fix Accordion hover background. (#1184) 2025-08-29 11:51:32 +08:00
actions.rs tree: Add Tree. (#1373) 2025-10-15 18:39:47 +08:00
alert.rs alert: Fix the icon position and let all size use same text size. (#1175) 2025-08-27 11:06:31 +08:00
animation.rs
badge.rs theme: Improve theme color fallbacks based on base colors. (#1069) 2025-07-17 11:43:40 +08:00
breadcrumb.rs chore: Impl Styled for more elements. (#1007) 2025-06-24 19:36:42 +08:00
checkbox.rs checkbox: Do not stop propagation when click (#1385) 2025-10-16 06:01:06 +00:00
clipboard.rs chore: Remove unnecessary RefCell (#1301) 2025-09-29 14:39:04 +08:00
color_picker.rs chore: Disable tab stop for some popover elements. (#1306) 2025-09-29 18:11:25 +08:00
description_list.rs inspector: Add Inspector. (#897) 2025-05-26 16:44:11 +08:00
divider.rs divider: Remove the horizontal divider full width style (#1278) 2025-09-23 13:46:35 +08:00
drawer.rs chore: Refactor tab key to switch focus. (#991) 2025-09-29 16:48:24 +08:00
dropdown.rs Call dropdown item's display_title() method also for rendering within the dropdown when open (#1410) 2025-10-22 11:35:34 +08:00
event.rs chore: Update GPUI to fix click_count API changes. (#1123) 2025-08-08 11:53:45 +08:00
form.rs chore: Refactor tab key to switch focus. (#991) 2025-09-29 16:48:24 +08:00
global_state.rs text_view: Add to support selection. (#1169) 2025-08-28 18:09:30 +08:00
group_box.rs group_box: Fix incorrect h_full in GroupBox. (#1253) 2025-09-16 21:23:29 +08:00
history.rs input: Grouping input history to avoid IME placeholder. (#1375) 2025-10-14 13:27:23 +00:00
icon.rs tree: Add Tree. (#1373) 2025-10-15 18:39:47 +08:00
index_path.rs list: Refactor List, Dropdown delegate API to support section. (#1107) 2025-08-05 19:23:32 +08:00
indicator.rs
inspector.rs chore: Refactor tab key to switch focus. (#991) 2025-09-29 16:48:24 +08:00
kbd.rs menu: Add AppMenuBar. (#1338) 2025-10-10 21:03:16 +08:00
label.rs label: Add HighlightsMatch to support prefix matching (#1243) 2025-09-12 18:35:55 +08:00
lib.rs tree: Add Tree. (#1373) 2025-10-15 18:39:47 +08:00
link.rs chore: Impl Styled for more elements. (#1007) 2025-06-24 19:36:42 +08:00
modal.rs chore: Refactor tab key to switch focus. (#991) 2025-09-29 16:48:24 +08:00
notification.rs notification: Fix display issues caused by the taffy upgrade (#1084) 2025-07-23 19:12:13 +08:00
popover.rs menu: Add AppMenuBar. (#1338) 2025-10-10 21:03:16 +08:00
progress.rs chore: Fix Slider, Progress width in horizontal mode. (#1096) 2025-07-28 18:56:09 +08:00
radio.rs checkbox: Do not stop propagation when click (#1385) 2025-10-16 06:01:06 +00:00
root.rs chore: Refactor tab key to switch focus. (#991) 2025-09-29 16:48:24 +08:00
skeleton.rs chore: Impl Styled for more elements. (#1007) 2025-06-24 19:36:42 +08:00
slider.rs slider: Add to support range to Slider. (#1121) 2025-08-08 16:59:23 +08:00
styled.rs Bump gpui (#1324) 2025-10-03 14:32:29 +08:00
switch.rs switch: Apply use_keyed_state to store toggle state for animation. (#1091) 2025-07-24 19:22:55 +08:00
tag.rs tag: Implement styled for custom style (#1319) 2025-10-02 14:07:07 +08:00
title_bar.rs title_bar: Add macOS double-click functionality to title bar (#996) (#1002) 2025-06-24 07:45:28 +08:00
tooltip.rs chore: Impl Styled for more elements. (#1007) 2025-06-24 19:36:42 +08:00
tree.rs tree: Add Tree. (#1373) 2025-10-15 18:39:47 +08:00
virtual_list.rs virtual_list: Fix VirtualList by measure item to get correct content_size to avoid scroll overflow. (#1388) 2025-10-16 07:50:09 +00:00
webview.rs Bump gpui (#1324) 2025-10-03 14:32:29 +08:00
window_border.rs Bump gpui (#1324) 2025-10-03 14:32:29 +08:00