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,4 +1,7 @@
|
|||
use gpui::*;
|
||||
use gpui::{
|
||||
div, prelude::*, px, rgb, size, App, AppContext, Bounds, SharedString, ViewContext,
|
||||
WindowBounds, WindowOptions,
|
||||
};
|
||||
|
||||
struct HelloWorld {
|
||||
text: SharedString,
|
||||
|
@ -11,7 +14,7 @@ impl Render for HelloWorld {
|
|||
.flex_col()
|
||||
.gap_3()
|
||||
.bg(rgb(0x505050))
|
||||
.size(Length::Definite(Pixels(500.0).into()))
|
||||
.size(px(500.0))
|
||||
.justify_center()
|
||||
.items_center()
|
||||
.shadow_lg()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue