Nnews

Deki 0.22: widgets and a Memory panel

Sixteen UI widgets, a Memory panel that reads the board live, fonts that bake themselves, and an editor drawn with the GPU.

posted
by
Jai
read
2 min
The demo's Widgets screen on a T-Deck Plus: tabs, buttons, a roller and text in four alignments.

Sixteen new widgets

Bar, Slider, Arc, Switch, Checkbox, LED, Spinner, Spinbox, Dropdown, List, Date Picker, Tab View, Message Box, Text Area, Keyboard and Chart.

The Pickers tab: a spinbox, a dropdown, a button and a date picker

  • Restyle a widget by selecting its parts, like any other object.
  • They look the same on every board and colour format.
  • Tab and the arrow keys move between them, or the trackball on a T-Deck.
  • Only the widgets a game uses go into its build.

A message box over the Pickers tab, asking “Leave the level?”

Guides: UI widgets and Coming from LVGL.

Memory panel

How much RAM a scene needs on each target, before you flash. With a board on USB, what it really uses: now, the peak, and which code allocated it.

The Memory panel for the Widgets scene on a T-Deck: 173 KB internal, 126 KB external, the frame buffer and font atlases as the biggest items

Also new

  • Fonts bake themselves. Type a size; the editor bakes it.
  • The editor draws with the GPU (Direct3D 12 or Vulkan) instead of OpenGL, with sharper text.
  • Builds run at low priority and only as many jobs as free memory allows.
  • Arcs bake 19 times faster, and shapes keep their edges between pixels.
  • The editor builds on macOS in CI. No download yet.

The demo

UI and widgets are now one Widgets screen with five tabs.

The demo’s menu on a T-Deck Plus: eight tiles

Updating

Update every package to 0.22 from the Package Manager, or withDekiEditor --packages-update all <project>.

Already out as 0.22.1:

  • deki-2d: clipping works on boards. Before, a Clip drew its children uncut on every board.
  • deki-esp32-integration: small allocations leave 16 KB of internal RAM free, then use PSRAM.

Changelog ·Download the editor

← all posts

Sponsors

all thanks →

Companies that provide hardware so Deki can run on it. Each board gets an official Deki package, kept maintained, with examples ready to run.

Friends

Projects whose work Deki uses or runs on.