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:
parent
7c6feeb3a8
commit
a8afc63a91
14 changed files with 77 additions and 32 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue