mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 12:12:00 +03:00
try a new before/after toggle for trip info [rebuild]
This commit is contained in:
parent
0005feb0ac
commit
59a5680895
@ -181,7 +181,6 @@ impl GeomBatch {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum RewriteColor {
|
||||
NoOp,
|
||||
Change(Color, Color),
|
||||
|
@ -192,7 +192,6 @@ impl Btn {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum BtnBuilder {
|
||||
SVG {
|
||||
path: String,
|
||||
|
@ -179,11 +179,15 @@ pub fn finished(
|
||||
format!("show before changes for {}", trip),
|
||||
Tab::PersonTrips(person, open),
|
||||
);
|
||||
col.push(Btn::text_bg2("Show before changes").build(
|
||||
ctx,
|
||||
format!("show before changes for {}", trip),
|
||||
None,
|
||||
));
|
||||
col.push(
|
||||
Btn::text_bg(
|
||||
format!("show before changes for {}", trip),
|
||||
Text::from_all(vec![Line("After / "), Line("Before").secondary()]),
|
||||
app.cs.section_bg,
|
||||
app.cs.hovering,
|
||||
)
|
||||
.build_def(ctx, None),
|
||||
);
|
||||
} else if app.has_prebaked().is_some() {
|
||||
let mut open = open_trips.clone();
|
||||
open.insert(trip, true);
|
||||
@ -191,11 +195,15 @@ pub fn finished(
|
||||
format!("show after changes for {}", trip),
|
||||
Tab::PersonTrips(person, open),
|
||||
);
|
||||
col.push(Btn::text_bg2("Show after changes").build(
|
||||
ctx,
|
||||
format!("show after changes for {}", trip),
|
||||
None,
|
||||
));
|
||||
col.push(
|
||||
Btn::text_bg(
|
||||
format!("show after changes for {}", trip),
|
||||
Text::from_all(vec![Line("After / ").secondary(), Line("Before")]),
|
||||
app.cs.section_bg,
|
||||
app.cs.hovering,
|
||||
)
|
||||
.build_def(ctx, None),
|
||||
);
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user