gpui: Remove use of use gpui::* in examples (#22311)

This PR removes the use of `use gpui::*` in the GPUI examples, as this
is not how consumers should be importing GPUI.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-12-20 18:09:30 -05:00 committed by GitHub
parent 7c6feeb3a8
commit a8afc63a91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 77 additions and 32 deletions

View file

@ -1,6 +1,11 @@
use std::time::Duration;
use gpui::*;
use anyhow::Result;
use gpui::{
black, bounce, div, ease_in_out, percentage, prelude::*, px, rgb, size, svg, Animation,
AnimationExt as _, App, AppContext, AssetSource, Bounds, SharedString, Transformation,
ViewContext, WindowBounds, WindowOptions,
};
struct Assets {}
@ -37,7 +42,7 @@ impl Render for AnimationExample {
div()
.flex()
.bg(rgb(0x2e7d32))
.size(Length::Definite(Pixels(300.0).into()))
.size(px(300.0))
.justify_center()
.items_center()
.shadow_lg()