gpui-component/crates
Jason Lee 4ded78ed30
dock: Refactor Panel trait to has &mut self and &mut Context<Self>. (#1716)
Continue #1712, #1713

## Description

Also change the `Panel` trait to has `&mut self` and `&mut
Context<Self>`.

## Break Changes

The methods `title`, `title_prefix`, `set_zoomed`, `set_active`,
`dropdown_menu`, `toolbar_buttons`, `on_added_to`, `on_removed` has
changed `&self` to `&mut self`, and `cx: &App` to `cx: &mut
Context<Self>`.

```diff
- fn title(&self, window: &Window, cx: &App) -> AnyElement
+ fn title(&mut self, window: &Window, cx: &mut Context<Self>) -> AnyElement
```
2025-12-01 17:57:18 +08:00
..
assets Bump v0.5.0-preview0 2025-11-27 14:49:36 +08:00
macros Bump v0.5.0-preview0 2025-11-27 14:49:36 +08:00
reqwest_client Bump v0.5.0-preview0 2025-11-27 14:49:36 +08:00
story dock: Refactor Panel trait to has &mut self and &mut Context<Self>. (#1716) 2025-12-01 17:57:18 +08:00
ui dock: Refactor Panel trait to has &mut self and &mut Context<Self>. (#1716) 2025-12-01 17:57:18 +08:00