Repository navigation
bones v5.0.0
Applications build their interfaces from widgets bones ships, drawn from one widget tree for native modules and extensions (ADR-048), in the desktop's look (ADR-049). A major release on both lines: ui/spec changed encoding, and UiView::view takes a Frame; bones:extension stays at 1.0.0.
Added
- Bones ships the widgets desktop applications need (ADR-048): text, buttons, inputs, selection, images, icons, cards, progress, toasts, media tiles, a full-window image stage, drag and drop, context menus, tooltips, fades, and the window's own title bar. A native module shows them through the new
uiservice (bones_kernel::ui::ViewModuleruns a view described from state);Kernel::ui_kindadds a widget kind of the product's own. - The ui module follows the desktop's look (ADR-049): system font, light or dark mode, accent colour, and each desktop's spacing on Windows, KDE, GNOME, and COSMIC, followed while running.
Kernel::ui_native_look(false)keeps egui's look. - Lucide icons are bundled;
cargo xtask lucidebrings in a newer release. - The ui draws at the display's scale, forwards the mouse wheel, opens links, and uses the clipboard.
Changed
UiView::viewtakes aFrame, through which a view shows extra trees such as dialogs, uploads images, and sets zoom and theme.
Changed (ABI)
ui/specis a widget tree (ADR-048): a root,WindoworScreen, over layout containers and widgets named by kind with their own properties. The flat label, text-edit, and button list is gone; extensions publishingui/specneed rebuilding against the newbones-messages.
Added (ABI)
- Layouts for wrapping and right-aligned rows, submenus, justified galleries that draw only what is on screen, and a
Modalroot; hints, focus, and disabled states on inputs. ui/selected,ui/toggled,ui/value,ui/submitted,ui/dropped,ui/key,ui/appeared, andui/reached-endevents;ui/imageandui/image-freeto upload images once; the standard widget kinds inui::kindsand every Lucide icon inui::icons.
Get this release
Install the tools of this release, then follow the bones-develop manual:
cargo install --git https://github.com/an-dr/bones --tag v5.0.0 bones-develop
bones-develop new my-game # a project pinned to v5.0.0An existing project moves here with bones-develop upgrade v5.0.0. An embedder pins bones-kernel = { git = "https://github.com/an-dr/bones", tag = "v5.0.0" }.