milestone project thingy
This commit is contained in:
@@ -27,6 +27,9 @@ fn main() {
|
||||
}
|
||||
|
||||
fn milestones(app: &mut Screen) {
|
||||
app.draw(format!("My Project"))
|
||||
.component(Transform::center().top(20));
|
||||
|
||||
for i in 0..4 {
|
||||
let mut milestone = Div {
|
||||
style: DivStyle {
|
||||
|
||||
@@ -53,6 +53,11 @@ impl Transform {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn top(mut self, m: usize) -> Self {
|
||||
self.y = Position::Const(m);
|
||||
self
|
||||
}
|
||||
|
||||
pub fn bottom(mut self) -> Self {
|
||||
self.y = Position::End;
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user