BlueGit

ict rusty-teams

Files

rusty-teams / vendor / gpui-component / PATCHES.md

PATCHES.md

PATCHES.md 2.4 KiB Download Raw

gpui-component 0.7.1 patches

Upstream: crates.io gpui-component 0.7.1. Wired in via [patch.crates-io] in the root Cargo.toml.

FileChangeWhy
src/styled.rspopover_style: no .shadow(popover_shadow(..)), radius theme.radius_lgpopups have no ring or shadow, radius 10 via radius_lg without touching buttons and inputs
src/styled.rs#[allow(dead_code)] on popover_shadowno caller left
src/popover.rsdropdown_popup: no animated shadow, cx renamed _cx, drop popover_shadow importsame as popover_style
src/menu/menu_item.rshover and selected use tokens.sidebar_accent / sidebar_accent_foreground instead of accentmenu hover is POPUP_HOVER, accent stays for buttons and lists
src/menu/popup_menu.rsseparator border_b(1px) in tokens.sidebar_accent1px POPUP_HOVER line, full width
src/tooltip.rsno border_1, border_color, shadow_mdtooltips match borderless popups
src/button/button.rspointer cursor on every interactive button, not only link/textconsistent with the app's own clickable elements
src/tooltip.rsPopupTriggerTooltip (popup_trigger_tooltip, popup_trigger_tooltip_text): no tooltip while the element's popup is opena tooltip never covers the menu its trigger opened, and does not come back while it is open
src/button/button.rsno managed tooltip while the button is held open by its popover or dropdown menusame, for Button triggers
src/tooltip.rsmanaged tooltip requests carry a liveness token from the trigger's element state (while_alive); TOOLTIP_DEBUG_SELECTOR on Tooltipa tooltip closes when its trigger is no longer rendered (e.g. "Jump to newest" after the button vanished); tests find tooltips
src/message_scroller.rswheel_mask(bool) builder, default on; off skips the ScrollableMask childthe mask scrolls the list in the capture phase, so an editor inside a row (channel thread reply) never got the wheel
src/message_scroller.rsMessageScrollerState::item_bounds(index)the typing bubble sits right under the last row and sticks above the composer once that row scrolls away
src/title_bar.rsno TITLE_BAR_LEFT_PADDING in fullscreen on macOSmacOS hides the traffic lights in fullscreen, the 80px inset left an empty gap before the title bar content
Source
1# gpui-component 0.7.1 patches
2
3Upstream: crates.io `gpui-component 0.7.1`. Wired in via `[patch.crates-io]` in the root `Cargo.toml`.
4
5| File | Change | Why |
6|---|---|---|
7| `src/styled.rs` | `popover_style`: no `.shadow(popover_shadow(..))`, radius `theme.radius_lg` | popups have no ring or shadow, radius 10 via `radius_lg` without touching buttons and inputs |
8| `src/styled.rs` | `#[allow(dead_code)]` on `popover_shadow` | no caller left |
9| `src/popover.rs` | `dropdown_popup`: no animated shadow, `cx` renamed `_cx`, drop `popover_shadow` import | same as `popover_style` |
10| `src/menu/menu_item.rs` | hover and selected use `tokens.sidebar_accent` / `sidebar_accent_foreground` instead of `accent` | menu hover is `POPUP_HOVER`, `accent` stays for buttons and lists |
11| `src/menu/popup_menu.rs` | separator `border_b(1px)` in `tokens.sidebar_accent` | 1px `POPUP_HOVER` line, full width |
12| `src/tooltip.rs` | no `border_1`, `border_color`, `shadow_md` | tooltips match borderless popups |
13| `src/button/button.rs` | pointer cursor on every interactive button, not only link/text | consistent with the app's own clickable elements |
14| `src/tooltip.rs` | `PopupTriggerTooltip` (`popup_trigger_tooltip`, `popup_trigger_tooltip_text`): no tooltip while the element's popup is open | a tooltip never covers the menu its trigger opened, and does not come back while it is open |
15| `src/button/button.rs` | no managed tooltip while the button is held `open` by its popover or dropdown menu | same, for Button triggers |
16| `src/tooltip.rs` | managed tooltip requests carry a liveness token from the trigger's element state (`while_alive`); `TOOLTIP_DEBUG_SELECTOR` on `Tooltip` | a tooltip closes when its trigger is no longer rendered (e.g. "Jump to newest" after the button vanished); tests find tooltips |
17| `src/message_scroller.rs` | `wheel_mask(bool)` builder, default on; off skips the `ScrollableMask` child | the mask scrolls the list in the capture phase, so an editor inside a row (channel thread reply) never got the wheel |
18| `src/message_scroller.rs` | `MessageScrollerState::item_bounds(index)` | the typing bubble sits right under the last row and sticks above the composer once that row scrolls away |
19| `src/title_bar.rs` | no `TITLE_BAR_LEFT_PADDING` in fullscreen on macOS | macOS hides the traffic lights in fullscreen, the 80px inset left an empty gap before the title bar content |