Skip to content

dxui v0.0.4

Latest

Choose a tag to compare

@wat4r wat4r released this 15 Oct 05:45

This release adds hover cursor controls and improves scrolling, shadow rendering, and native initialization.

Highlights

  • Add typed Style.Cursor support with CursorAuto, CursorDefault, CursorText, and CursorPointer.
  • Show an I-beam immediately when hovering over Input or Textarea, without requiring a click.
  • Use a pointing hand by default for Button, including TextButton and ButtonGroup children.
  • Keep hover cursors synchronized when components or layouts change beneath a stationary pointer, without additional presents.
  • Respect the system’s natural or traditional scroll direction.
  • Improve Gaussian shadow falloff and prevent an overly dark edge or visible solid core beneath offset shadows.
  • Disable SDL signal handlers before initialization to preserve Go’s signal handling.

Behavior change

Style.Cursor defaults to CursorAuto: Input and Textarea use an I-beam, Button uses a pointing hand, and other controls use the default arrow. Set an explicit cursor to override these defaults.

Cursor styling changes hover appearance only; it does not add focus or activation behavior.

No dependency changes.

Upgrade

go get github.com/dxui-org/dxui@v0.0.4

Full Changelog: v0.0.3...v0.0.4