mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-01 02:33:54 +03:00
theme dividers
This commit is contained in:
parent
357ba15afe
commit
6b8211c3ba
@ -496,7 +496,7 @@ impl Widget {
|
||||
Widget::draw_batch(
|
||||
ctx,
|
||||
GeomBatch::from(vec![(
|
||||
Color::WHITE,
|
||||
ctx.style().btn_outline.fg,
|
||||
Polygon::rectangle(pct_width * ctx.canvas.window_width, 2.0),
|
||||
)]),
|
||||
)
|
||||
@ -506,7 +506,10 @@ impl Widget {
|
||||
pub fn vert_separator(ctx: &mut EventCtx, height_px: f64) -> Widget {
|
||||
Widget::draw_batch(
|
||||
ctx,
|
||||
GeomBatch::from(vec![(Color::WHITE, Polygon::rectangle(2.0, height_px))]),
|
||||
GeomBatch::from(vec![(
|
||||
ctx.style().btn_outline.fg,
|
||||
Polygon::rectangle(2.0, height_px),
|
||||
)]),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user