gpui-component/crates/ui/src
han e5fa0709d1
theme: Add switch.thumb.background theme config support (#1685)
## Description:
This PR adds support for customizing the Switch component's thumb color.

- Changes:
•  Added switch_thumb field to ThemeColor and ThemeConfig.
•  Updated Switch component to use cx.theme().switch_thumb.
• Config key: switch.thumb.background (falls back to background color if
not set).

Co-authored-by: hl <hl@nmcsoft.com>
2025-11-26 10:25:35 +08:00
..
avatar chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
button button: Add dropdown_caret option to show a caret icon to end of button. (#1637) 2025-11-18 16:41:16 +08:00
chart chart: Add support to set stroke color on line chart (#1629) 2025-11-18 05:52:39 +00:00
dock chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
form form(field): Fix label line break not working (#1558) 2025-11-11 10:36:10 +00:00
highlighter highlighter: Make SyntaxHighlighter::styles method public for external use (#1415) 2025-10-23 10:34:13 +08:00
input editor: Improve scroll to support position at the edge of the editor on click. (#1672) 2025-11-24 09:37:59 +00:00
list scrollbar: Remove Scrollbar::uniform_scroll, use Scrollbar::vertical instead. (#1659) 2025-11-21 22:53:33 +08:00
menu menu: Add check_side to PopupMenu to support display check at right side. (#1677) 2025-11-25 15:30:36 +08:00
plot plot: Rename Label and Axis include Plot prefix (#1597) 2025-11-14 11:49:07 +08:00
resizable resizable, dock: Improve Panel adjust size logic on layout changed. (#1588) 2025-11-14 16:12:59 +08:00
scroll scrollbar: Remove Scrollbar::uniform_scroll, use Scrollbar::vertical instead. (#1659) 2025-11-21 22:53:33 +08:00
setting chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
sidebar setting: Add scrollbar to SettingPage. (#1660) 2025-11-21 23:04:56 +08:00
tab tab: Allow tab item to fill remaining space. (#1654) 2025-11-21 11:49:30 +08:00
table chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
text chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
theme theme: Add switch.thumb.background theme config support (#1685) 2025-11-26 10:25:35 +08:00
time chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
accordion.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
actions.rs tree: Add Tree. (#1373) 2025-10-15 18:39:47 +08:00
alert.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
animation.rs Add exit animation to Notification. 2024-08-30 11:24:55 +08:00
badge.rs theme: Improve theme color fallbacks based on base colors. (#1069) 2025-07-17 11:43:40 +08:00
breadcrumb.rs breadcrumb: Rename item to child and add children method. (#1519) 2025-11-05 15:13:29 +08:00
checkbox.rs icon: Rework icons to make use of the IconNamed trait (#1640) 2025-11-20 02:30:08 +00:00
clipboard.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
collapsible.rs collapsible: Add Collapsible. (#1525) 2025-11-06 10:57:18 +08:00
color_picker.rs color_picker: Only change value when it's confirmed (#1682) 2025-11-25 10:05:43 +00:00
description_list.rs description_list: Renamed child to item, and add child to add DescriptionItem. (#1521) 2025-11-05 07:26:17 +00:00
dialog.rs dialog: Rename Modal to Dialog. (#1538) 2025-11-07 17:25:55 +08:00
divider.rs divider: Remove the horizontal divider full width style (#1278) 2025-09-23 13:46:35 +08:00
event.rs chore: Update GPUI to fix click_count API changes. (#1123) 2025-08-08 11:53:45 +08:00
geometry.rs chore: Split some feature into geometry.rs (#1676) 2025-11-25 02:07:31 +00:00
global_state.rs text_view: Add to support selection. (#1169) 2025-08-28 18:09:30 +08:00
group_box.rs setting: Add Settings component. (#1632) 2025-11-20 13:51:44 +00:00
history.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
icon.rs setting: Add Settings component. (#1632) 2025-11-20 13:51:44 +00:00
index_path.rs list: Refactor List, Dropdown delegate API to support section. (#1107) 2025-08-05 19:23:32 +08:00
inspector.rs theme: Use font_family for all elements. (#1618) 2025-11-17 03:18:17 +00:00
kbd.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
label.rs label: Fix Label highlight may crash of not a char boundary. (#1574) 2025-11-12 10:19:43 +00:00
lib.rs chore: Split some feature into geometry.rs (#1676) 2025-11-25 02:07:31 +00:00
link.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
notification.rs Revert "root: Render overlays inside Root element by default. (#1570)" (#1584) 2025-11-13 13:37:05 +08:00
popover.rs menu: Add check_side to PopupMenu to support display check at right side. (#1677) 2025-11-25 15:30:36 +08:00
progress.rs menu: Add check_side to PopupMenu to support display check at right side. (#1677) 2025-11-25 15:30:36 +08:00
radio.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
root.rs chore: Update to use Rust edition 2024. (#1669) 2025-11-24 14:38:43 +08:00
select.rs select: Add render prop to customize item title display. (#1638) 2025-11-18 20:30:37 +08:00
sheet.rs dialog: Rename Modal to Dialog. (#1538) 2025-11-07 17:25:55 +08:00
skeleton.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
slider.rs slider: Remove thumb tooltip (#1582) 2025-11-13 08:33:37 +08:00
spinner.rs spinner: Rename Indicator to Spinner. (#1526) 2025-11-06 11:36:39 +08:00
styled.rs chore: Split some feature into geometry.rs (#1676) 2025-11-25 02:07:31 +00:00
switch.rs theme: Add switch.thumb.background theme config support (#1685) 2025-11-26 10:25:35 +08:00
tag.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
title_bar.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
tooltip.rs theme: Use font_family for all elements. (#1618) 2025-11-17 03:18:17 +00:00
tree.rs docs: Fix minor docs issues (#1656) 2025-11-21 17:34:30 +08:00
virtual_list.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
webview.rs chore: Standardize the overall API and improve docs. (#1516) 2025-11-05 19:10:30 +08:00
window_border.rs Bump gpui (#1324) 2025-10-03 14:32:29 +08:00