gpui: Add a standard text example (#30747)
This is a dumb first pass at a standard text example. We'll use this to start digging in to some text/scale rendering issues. There will be a ton of follow-up features to this, but starting simple. Release Notes: - N/A
This commit is contained in:
parent
9dabf491f0
commit
e26620d1cf
30 changed files with 606 additions and 362 deletions
|
@ -6,10 +6,10 @@ use ui::prelude::*;
|
|||
pub struct OverflowScrollStory;
|
||||
|
||||
impl Render for OverflowScrollStory {
|
||||
fn render(&mut self, _window: &mut Window, _cx: &mut Context<Self>) -> impl IntoElement {
|
||||
Story::container()
|
||||
.child(Story::title("Overflow Scroll"))
|
||||
.child(Story::label("`overflow_x_scroll`"))
|
||||
fn render(&mut self, _window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
|
||||
Story::container(cx)
|
||||
.child(Story::title("Overflow Scroll", cx))
|
||||
.child(Story::label("`overflow_x_scroll`", cx))
|
||||
.child(
|
||||
h_flex()
|
||||
.id("overflow_x_scroll")
|
||||
|
@ -22,7 +22,7 @@ impl Render for OverflowScrollStory {
|
|||
.child(SharedString::from(format!("Child {}", i + 1)))
|
||||
})),
|
||||
)
|
||||
.child(Story::label("`overflow_y_scroll`"))
|
||||
.child(Story::label("`overflow_y_scroll`", cx))
|
||||
.child(
|
||||
v_flex()
|
||||
.w_full()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue