brick v0.65 Release Notes
-
🆕 New features and API changes:
- Viewports got support for built-in scroll bar rendering. This
includes additions of types and functions to manage the feature
behavior. These changes enable viewports to automatically get
scroll bars drawn next to them (on any side) with customizable
attributes and drawings. As part of this change, a new demo program,
ViewportScrollbarsDemo.hs
, was added to show off these new features. Here are the new types and functions that got added (mostly toBrick.Widgets.Core
):withVScrollBars
- enable display of vertical scroll barswithHScrollBars
- enable display of horizontal scroll barswithClickableVScrollBars
- enable mouse click reporting on vertical scroll bar elementswithClickableHScrollBars
- enable mouse click reporting on horizontal scroll bar elementsClickableScrollbarElement
- the type of elements of a scroll bar that can be clicked on and provided to the applicationwithVScrollBarHandles
- enable vertical scroll bar handle drawingwithHScrollBarHandles
- enable horizontal scroll bar handle drawingwithVScrollBarRenderer
- customize the renderer used for vertical scroll barswithHScrollBarRenderer
- customize the renderer used for horizontal scroll barsScrollbarRenderer(..)
- the type of scroll bar renderer implementationsverticalScrollbarRenderer
- the default renderer for vertical scrollbars, customizable withwithVScrollBarRenderer
horizontalScrollbarRenderer
- the default renderer for horizontal scrollbars, customizable withwithHScrollBarRenderer
scrollbarAttr
- the base attribute of scroll barsscrollbarTroughAttr
- the attribute of scroll bar troughsscrollbarHandleAttr
- the attribute of scroll bar handles
- The
Context
type got then
type argument that is used forResult
,EventM
, etc.
📦 Package changes:
- Raised
base
bounds to allow building with GHC 9.2.1 (thanks Mario Lang) - Stopped supporting GHC 7.10.
- Viewports got support for built-in scroll bar rendering. This
includes additions of types and functions to manage the feature
behavior. These changes enable viewports to automatically get
scroll bars drawn next to them (on any side) with customizable
attributes and drawings. As part of this change, a new demo program,