Skip to content

Releases: Martan03/termint

v0.9.0

Choose a tag to compare

@Martan03 Martan03 released this 05 May 14:40

v0.9.0

Features

  • Add Stylize and Styleable traits for better styling
    • Such as .red(), .on_white() and .bold()
  • Add Line and StyledStr for better text parsing
  • Add Text::append_lines to the Text trait
  • Add text alignment and ellipsis into Paragraph
  • Add Text trait implementation for Paragraph
  • Add bottom title to Block (Block::title_bottom)
  • Add support for multiple titles to Block
  • Add row_span and col_span support to Grid
  • Add label to ProgressBar

Changes:

  • Remove Text::render_offset (Text::append_lines should be used instead)
  • Remove Text::get and Text::get_text
    • Text::get is replaced by std::fmt::Display implementation

Fixes

  • Fix table row style not being applied
  • Fix text parser ignoring whitespaces when Wrap::Word
  • Fix text parser incorrectly measuring width

v0.8.1

Choose a tag to compare

@Martan03 Martan03 released this 03 Apr 10:42

v0.8.1

Features:

  • Add dummy TestBackend (blank Backend implementation)
    • Backend::get_size returns configured terminal size
  • Add LayoutNode::layout, which simplifies Widget::layout implementations

Changes:

  • Term now cannot be used without Backend
  • Remove NoBackend type

Fixes:

  • Fix MacOS compile error by removing termal/raw from default features

v0.8.0

Choose a tag to compare

@Martan03 Martan03 released this 01 Apr 15:36

v0.8.0

Features:

  • Add mouse event handling (Widget::on_event)
  • Add Application::message to capture event messages
  • Add Button widget
  • Add default mouse event handling to some widgets
    • List, Table and Scrollable implement scrolling
  • Add option to set custom event Message to some widgets
    • Button, ProgressBar, Scrollable, Table
  • Add LayoutNode for layout caching (replaces Cache)

Changes:

  • Add delta argument (time between frames) to Application::update
  • Remove BgGrad layout forwarding (such as BgGrad::center,...)
  • Widget trait API changes due to LayoutNode replacing Cache
    • diff and layout are added to the Widget
    • render method accepts LayoutNode instead of Cache and Rect

v0.7.0

Choose a tag to compare

@Martan03 Martan03 released this 02 Feb 23:02

v0.7.0

Features:

  • Add Backend trait with CrosstermBackend and TermalBackend
    implementations
  • Add option to change Term backend
  • Add Application trait and Term::run for managed main loop
  • Add Term::draw for size-aware rendering using Frame context
  • Add option to force scrollbar visibility to List and Table
  • Add automatic terminal restoration on crash or when Term dropped

Changes:

  • Term now requires a backend type (such as Term::<Backend>::new())

Fixes:

  • Fix Modifier incorrectly coloring text blue
  • Fix ProgressBar thumb styling issues

v0.6.1

Choose a tag to compare

@Martan03 Martan03 released this 14 Dec 09:51

v0.6.1

Features:

  • Add buffer grapheme handling

Fixes:

  • Laoyut using cache incorrectly

v0.6.0

Choose a tag to compare

@Martan03 Martan03 released this 07 Sep 17:55

v0.6.0

Features:

  • Add missing From traits to Overlay widget
  • Add ProgressBar widget
  • Add Table widget
  • Add Widget Cache
  • Optional serde trait implementation

Changes:

  • Change BgGrad API
  • Change Border and Modifier to use bitflags macro
  • Rename StrSpanExtension to ToSpan
  • Rework text rendering - add generic text parser
  • Use termal library for getting terminal size and some other useful things

v0.5.2

Choose a tag to compare

@Martan03 Martan03 released this 05 Nov 20:35

v0.5.2

Features:

  • Optimize Buffer merge function
  • Add more useful trait implementations
  • Edit docs

v0.5.1

Choose a tag to compare

@Martan03 Martan03 released this 06 Oct 16:42

v0.5.1

Features:

  • Rename Coords to Vec2
  • Add trait implementations and new features:
    • Buffer
    • Padding
    • Rect
    • Vec2
  • Scrollbar widget
  • Scrollable widget - allows overflown content to be accessed by scrolling
  • Overlay widget

v0.5.0

Choose a tag to compare

@Martan03 Martan03 released this 04 Aug 10:06

v0.5.0

Features:

  • Add Grid widget
  • Add rendering Buffer (edit all rendering functions)
  • Add rerendering and rendering only changed characters to Term
  • Add small screen option to Term, when widget cannot fit
  • Add Style struct
  • Add universal Color enum (removed Fg and Bg enums)
  • Edit Modifier to work as bitflag rather then enum

Fixes:

  • Fix Layout width & height functions
  • Fix List to have proper state

v0.4.2

Choose a tag to compare

@Martan03 Martan03 released this 12 Apr 17:32

v0.4.2

Features:

  • Add option to get String representation of Widget and Text

Fixes:

  • Fix Span and Grad ellipsis (when ellipsis couldn't fit)