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