gpui-component/themes/molokai.json
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

279 lines
7.8 KiB
JSON

{
"$schema": "https://github.com/longbridge/gpui-component/raw/refs/heads/main/.theme-schema.json",
"name": "Molokai",
"author": "Tomas Restrepo",
"url": "https://github.com/tomasr/molokai",
"themes": [
{
"name": "Molokai Light",
"mode": "light",
"colors": {
"accent.background": "#EBE4E1",
"accent.foreground": "#060606",
"background": "#FEFAF9",
"border": "#E4DEDA",
"window_border": "#d6d6d6",
"ring": "#a0a0ab",
"foreground": "#0a0a0a",
"input.border": "#E4DEDA",
"list.active.background": "#E1477411",
"list.active.border": "#E14774AA",
"list.even.background": "#E4DEDA33",
"muted.background": "#f5f5f5",
"muted.foreground": "#767676",
"panel.background": "#FEFAF9",
"popover.background": "#FEFAF9",
"popover.foreground": "#0a0a0a",
"primary.background": "#E14774",
"primary.foreground": "#fafafa",
"scrollbar.background": "#FEFAF900",
"scrollbar.thumb.background": "#ADADB0",
"secondary.background": "#E4DEDAEE",
"secondary.active.background": "#E4DEDA",
"secondary.foreground": "#060606",
"secondary.hover.background": "#E4DEDA99",
"base.red": "#e17047",
"base.green": "#82cc0a",
"base.yellow": "#ccac0a",
"base.blue": "#e16032",
"base.blue.light": "#e16032",
"base.magenta": "#7058be",
"base.cyan": "#0acc78"
},
"highlight": {
"editor.foreground": "#0a0a0a",
"editor.background": "#FEFAF9",
"editor.active_line.background": "#E4DEDA",
"editor.line_number": "#767676",
"editor.active_line_number": "#0a0a0a",
"conflict": "#e14775",
"created": "#269D69",
"deleted": "#e14775",
"error": "#e14775",
"hidden": "#767676",
"hint": "#7058be",
"ignored": "#767676",
"info": "#1c8ca8",
"modified": "#cc7a0a",
"predictive": "#ADADB0",
"renamed": "#E14774",
"success": "#269D69",
"unreachable": "#767676",
"warning": "#cc7a0a",
"syntax": {
"attribute": {
"color": "#e14775"
},
"boolean": {
"color": "#cc7a0a"
},
"comment": {
"color": "#767676",
"font_style": "italic"
},
"comment.doc": {
"color": "#767676",
"font_style": "italic"
},
"constant": {
"color": "#7058be"
},
"constructor": {
"color": "#269D69"
},
"embedded": {
"color": "#1c8ca8"
},
"function": {
"color": "#e14775"
},
"keyword": {
"color": "#e14775",
"font_style": "normal"
},
"link_text": {
"color": "#cc7a0a",
"font_style": "underline"
},
"link_uri": {
"color": "#7058be",
"font_style": "italic"
},
"number": {
"color": "#cc7a0a"
},
"string": {
"color": "#269D69"
},
"string.escape": {
"color": "#7058be"
},
"string.regex": {
"color": "#269D69"
},
"string.special": {
"color": "#e14775"
},
"string.special.symbol": {
"color": "#e14775"
},
"tag": {
"color": "#e14775"
},
"text.literal": {
"color": "#7058be"
},
"title": {
"color": "#cc7a0a",
"font_weight": 600
},
"type": {
"color": "#1c8ca8"
},
"property": {
"color": "#7058be"
},
"variable.special": {
"color": "#e14775"
}
}
}
},
{
"name": "Molokai Dark",
"mode": "dark",
"colors": {
"accent.background": "#2b2f30",
"accent.foreground": "#f8f8f2",
"background": "#1b1d1e",
"border": "#3b3b3b",
"foreground": "#f8f8f2",
"input.border": "#3b3b3b",
"list.active.background": "#f9267211",
"list.active.border": "#f9267288",
"list.even.background": "#292c2e",
"muted.background": "#232526",
"muted.foreground": "#5e5c51",
"panel.background": "#1b1d1e",
"popover.background": "#1b1d1e",
"popover.foreground": "#f8f8f2",
"primary.background": "#dc1860",
"primary.foreground": "#f8f8f2",
"scrollbar.background": "#1b1d1e00",
"scrollbar.thumb.background": "#4b4b4b",
"secondary.background": "#292c2e",
"secondary.active.background": "#222426",
"secondary.foreground": "#f5f5f4",
"secondary.hover.background": "#303436",
"table.row.border": "#3b3b3b70",
"title_bar.background": "#262723",
"title_bar.border": "#3b3b3b",
"base.red": "#802207",
"base.green": "#448007",
"base.yellow": "#807607",
"base.blue": "#075880",
"base.magenta": "#800780",
"base.cyan": "#07807e"
},
"highlight": {
"editor.foreground": "#DDDDDD",
"editor.background": "#000000",
"editor.active_line.background": "#131313",
"editor.line_number": "#8F8F8F",
"editor.active_line_number": "#DDDDDD",
"conflict": "#D2602D",
"created": "#3f72e2",
"created.background": "#0C4619",
"deleted.background": "#46190C",
"error.background": "#46190C",
"error.border": "#802207",
"hidden": "#9E9E9E",
"hint": "#b283f8",
"hint.background": "#250c4b",
"hint.border": "#3f0891",
"info.background": "#0C194D",
"info.border": "#082190",
"modified": "#B0A878",
"modified.background": "#3A310E",
"predictive": "#5D5945",
"success.background": "#0C4619",
"warning.background": "#3A310E",
"warning.border": "#7B6508",
"syntax": {
"attribute": {
"color": "#be9a52"
},
"boolean": {
"color": "#E1D797"
},
"comment": {
"color": "#9E9E9E"
},
"comment.doc": {
"color": "#9E9E9E"
},
"constant": {
"color": "#E1D797"
},
"constructor": {
"color": "#b5af9a"
},
"embedded": {
"color": "#CACCCA"
},
"function": {
"color": "#E1D797"
},
"keyword": {
"color": "#E19773"
},
"link_text": {
"color": "#A86D3B",
"font_style": "normal"
},
"link_uri": {
"color": "#6F6D66",
"font_style": "italic"
},
"number": {
"color": "#E19773"
},
"string": {
"color": "#76BA53"
},
"string.escape": {
"color": "#76BA53"
},
"string.regex": {
"color": "#76BA53"
},
"string.special": {
"color": "#E1D797"
},
"string.special.symbol": {
"color": "#E1D797"
},
"tag": {
"color": "#b5af9a"
},
"text.literal": {
"color": "#E1D797"
},
"title": {
"color": "#A76D3B",
"font_weight": 600
},
"type": {
"color": "#A86D3B"
},
"property": {
"color": "#CACCCA"
},
"variable.special": {
"color": "#E19773"
}
}
}
}
]
}