feat: add tiles from gpui-components

This commit is contained in:
2024-12-18 07:54:40 +07:00
parent 0682612d42
commit 407db7a7d5
13 changed files with 1018 additions and 182 deletions

View File

@@ -1,6 +1,6 @@
use coop_ui::{
button::Button,
dock::{DockItemState, Panel, PanelEvent, TitleStyle},
dock::{Panel, PanelEvent, PanelState, TitleStyle},
popup_menu::PopupMenu,
};
use form::Form;
@@ -75,8 +75,8 @@ impl Panel for ChatPanel {
vec![]
}
fn dump(&self, _cx: &AppContext) -> DockItemState {
DockItemState::new(self)
fn dump(&self, _cx: &AppContext) -> PanelState {
PanelState::new(self)
}
}

View File

@@ -1,6 +1,6 @@
use coop_ui::{
button::Button,
dock::{DockItemState, Panel, PanelEvent, TitleStyle},
dock::{Panel, PanelEvent, PanelState, TitleStyle},
popup_menu::PopupMenu,
scroll::ScrollbarAxis,
StyledExt,
@@ -68,8 +68,8 @@ impl Panel for LeftDock {
vec![]
}
fn dump(&self, _cx: &AppContext) -> DockItemState {
DockItemState::new(self)
fn dump(&self, _cx: &AppContext) -> PanelState {
PanelState::new(self)
}
}

View File

@@ -1,6 +1,6 @@
use coop_ui::{
button::Button,
dock::{DockItemState, Panel, PanelEvent, TitleStyle},
dock::{Panel, PanelEvent, PanelState, TitleStyle},
popup_menu::PopupMenu,
theme::{ActiveTheme, Colorize},
StyledExt,
@@ -58,8 +58,8 @@ impl Panel for WelcomePanel {
vec![]
}
fn dump(&self, _cx: &AppContext) -> DockItemState {
DockItemState::new(self)
fn dump(&self, _cx: &AppContext) -> PanelState {
PanelState::new(self)
}
}