rename a bit
This commit is contained in:
@@ -39,7 +39,7 @@ impl Client {
|
||||
(
|
||||
rect.color(Color::BLUE),
|
||||
(
|
||||
rect.color(Color::RED).sized((100.0, 100.0)),
|
||||
rect.color(Color::RED).size(100).center(),
|
||||
(rect.color(Color::ORANGE), rect.color(Color::LIME).pad(10.0))
|
||||
.span(Dir::RIGHT, [1, 1]),
|
||||
rect.color(Color::YELLOW),
|
||||
@@ -86,25 +86,28 @@ impl Client {
|
||||
.edit_on(HOVER_END, move |r| {
|
||||
r.color = color;
|
||||
});
|
||||
(rect, text(label).size(30)).stack()
|
||||
(rect, text(label).font_size(30)).stack()
|
||||
};
|
||||
|
||||
let text_test = ui.add_static(
|
||||
(
|
||||
text("this is a").size(30).align(Align::Left),
|
||||
text("teeeeeeeest").size(30).align(Align::Left),
|
||||
text("okkk\nokkkkkk!").size(30).align(Align::Left),
|
||||
text("hmm").size(30),
|
||||
text("a").size(30),
|
||||
text("this is a").font_size(30).align(Align::Left),
|
||||
text("teeeeeeeest").font_size(30).align(Align::Left),
|
||||
text("okkk\nokkkkkk!").font_size(30).align(Align::Left),
|
||||
text("hmm").font_size(30),
|
||||
text("a").font_size(30),
|
||||
(
|
||||
text("'").size(30).family(Family::Monospace).align(Align::Top),
|
||||
text("'").size(30).family(Family::Monospace),
|
||||
text(":gamer mode").size(30).family(Family::Monospace),
|
||||
Rect::new(Color::BLUE).sized(100),
|
||||
text("'")
|
||||
.font_size(30)
|
||||
.family(Family::Monospace)
|
||||
.align(Align::Top),
|
||||
text("'").font_size(30).family(Family::Monospace),
|
||||
text(":gamer mode").font_size(30).family(Family::Monospace),
|
||||
Rect::new(Color::BLUE).size(100),
|
||||
)
|
||||
.span(Dir::RIGHT, sized())
|
||||
.center(),
|
||||
text("pretty cool right?").size(30),
|
||||
text("pretty cool right?").font_size(30),
|
||||
)
|
||||
.span(Dir::DOWN, sized()),
|
||||
);
|
||||
@@ -125,7 +128,7 @@ impl Client {
|
||||
.erase_type();
|
||||
ui[span_add].children.push((child, sized()));
|
||||
})
|
||||
.sized(150)
|
||||
.size(150)
|
||||
.align(Align::BotRight);
|
||||
|
||||
let del_button = Rect::new(Color::RED)
|
||||
@@ -133,7 +136,7 @@ impl Client {
|
||||
.on(PRESS_START, move |ui| {
|
||||
ui[span_add].children.pop();
|
||||
})
|
||||
.sized(150)
|
||||
.size(150)
|
||||
.align(Align::BotLeft);
|
||||
|
||||
let info = ui.add(text(""));
|
||||
|
||||
Reference in New Issue
Block a user