Use gpui instead of gpui2 consistenytly
This commit is contained in:
parent
eb325fb387
commit
496518f3e8
71 changed files with 111 additions and 111 deletions
|
@ -28,9 +28,9 @@ pub fn derive_component(input: TokenStream) -> TokenStream {
|
|||
let (_, ty_generics, _) = ast.generics.split_for_impl();
|
||||
|
||||
let expanded = quote! {
|
||||
impl #impl_generics gpui2::Component<#view_type> for #name #ty_generics #where_clause {
|
||||
fn render(self) -> gpui2::AnyElement<#view_type> {
|
||||
(move |view_state: &mut #view_type, cx: &mut gpui2::ViewContext<'_, #view_type>| self.render(view_state, cx))
|
||||
impl #impl_generics gpui::Component<#view_type> for #name #ty_generics #where_clause {
|
||||
fn render(self) -> gpui::AnyElement<#view_type> {
|
||||
(move |view_state: &mut #view_type, cx: &mut gpui::ViewContext<'_, #view_type>| self.render(view_state, cx))
|
||||
.render()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,7 +123,7 @@ fn generate_predefined_setter(
|
|||
.iter()
|
||||
.map(|field_tokens| {
|
||||
quote! {
|
||||
style.#field_tokens = Some((#negation_token gpui2::#length_tokens).into());
|
||||
style.#field_tokens = Some((#negation_token gpui::#length_tokens).into());
|
||||
}
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
@ -163,7 +163,7 @@ fn generate_custom_value_setter(
|
|||
|
||||
let method = quote! {
|
||||
#[doc = #doc_string]
|
||||
fn #method_name(mut self, length: impl std::clone::Clone + Into<gpui2::#length_type>) -> Self where Self: std::marker::Sized {
|
||||
fn #method_name(mut self, length: impl std::clone::Clone + Into<gpui::#length_type>) -> Self where Self: std::marker::Sized {
|
||||
let style = self.style();
|
||||
#(#field_assignments)*
|
||||
self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue