Skip to content

Commit

Permalink
Slight UI adjustment to LTN undo. [rebuild] [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed May 30, 2022
1 parent 7347e15 commit 099e674
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/ltn/src/edit/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ pub fn widget(ctx: &mut EventCtx, app: &App) -> Widget {
]),
crate::components::FreehandFilters::button(ctx),
Widget::row(vec![
ctx.style()
.btn_plain
.icon("system/assets/tools/undo.svg")
.disabled(app.session.modal_filters.previous_version.is_none())
.hotkey(lctrl(Key::Z))
.build_widget(ctx, "undo"),
format!(
"{} filters added",
app.session.modal_filters.roads.len()
+ app.session.modal_filters.intersections.len()
)
.text_widget(ctx)
.centered_vert(),
ctx.style()
.btn_plain
.icon("system/assets/tools/undo.svg")
.disabled(app.session.modal_filters.previous_version.is_none())
.hotkey(lctrl(Key::Z))
.build_widget(ctx, "undo"),
]),
])
}
Expand Down

0 comments on commit 099e674

Please sign in to comment.