Checkpoint

This commit is contained in:
Antonio Scandurra 2023-10-17 08:52:26 +02:00
parent c6e20aed9b
commit b040ae8d4d
4 changed files with 40 additions and 16 deletions

View file

@ -0,0 +1,20 @@
use gpui3::{div, view, white, Context, ParentElement, StyleHelpers, View, WindowContext};
pub struct TextStory {
text: View<()>,
}
impl TextStory {
pub fn view(cx: &mut WindowContext) -> View<()> {
view(cx.entity(|cx| ()), |_, cx| {
div()
.size_full()
.fill(white())
.child(concat!(
"The quick brown fox jumps over the lazy dog. ",
"Meanwhile, the lazy dog decided it was time for a change. ",
"He started daily workout routines, ate healthier and became the fastest dog in town.",
))
})
}
}