Skip to content

v0.14.0

Compare
Choose a tag to compare
@gyscos gyscos released this 14 Jan 18:00
· 79 commits to master since this release

Breaking changes

  • cursive::event::AnyCb changed from Box<...> to &mut ..., so users of View::call_on_any no longer need to box their closures.
  • Remove BoxView::squishable.
  • Update crossterm to 0.14.
  • Removed From implementations for Margins. Use Margins::lrtb and the like instead.
    • Or Dialog::padding_lrtb.
  • Renamed multiple types (old names are still re-exported, but deprecated):
    • BoxView -> ResizedView
    • ViewBox -> BoxedView
    • SizedView -> LastSizeView
    • Identifiable -> Nameable
    • Boxable -> Resizable
    • IdView -> NamedView
    • Selector::Id -> Selector::Name
    • with_id -> with_name
    • call_on_id -> call_on_name
    • find_id -> find_name
    • focus_id -> focus_name

API updates

  • SelectView::{item, with_all} now accept S: Into<StyledString> for colored labels.
  • Add ScrollView::scroll_to_important_area.
  • Add LinearLayout::set_focus_index.
  • Add XY::{sum, product}.
  • view::scroll is now a public module.
  • Add Cursive::process_events and Cursive::post_events.
    • This gives users finer control than Cursive::step.
  • Layer now has a color option.
  • LinearLayout can now directly add boxed views without re-boxing.
  • Add inner getters to EnableableView.
  • Add PaddedView::get_inner(_mut).
  • Add a bunch of constructors for Margins.
  • Add Dialog::padding_lrtb
  • Add Dialog::set_padding*
  • Add PaddedView::lrtb

Improvements

  • Changed the default color for TitleSecondary from yellow to light blue.
  • Changed the default color for Tertiary from grey to white.
  • Reduced dependencies (toml is now optional, removed hashbrown).
  • Cursive::default() now fallbacks do dummy backend if no other is available.

Bugfixes

  • Fixed ScrollView::show_scrollbars().
  • Correctly update the offset for ScrollView after focus change.
  • Fixed layout for BoxView with some size constraints.
  • On Windows, do not print unix-specific character during initialization.
  • Fix out-of-bounds access for some mouse events in MenuPopup