Skip to content

CUI 1.5

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 19:41
f9597a3

Experimental Android and iOS backends with multi-touch input, Direct3D 12, Vulkan and Metal renderers beside OpenGL, and native Wayland through SDL2. Windows can be maximized, minimized, restored and reopened where they were. Tree tables drag rows and open a context menu, custom canvases take keyboard focus, ordered input and the wheel, and lists can keep a row in view with cui_scroll_reveal. New components draw in dots (dither, spinners, voice), and there are creative controls and canvas bars. Most of this release is fixes: keyboard and focus in many components, disabled and read-only states, drags, Windows dialogs and window animations, idle X11 windows, input methods on every desktop backend and memory safety.

Added

  • cui_scroll_reveal(ui, scroll_id, row) keeps a row of a scroll area in view with the least movement, for keyboard selection in lists whose rows differ in height: nothing moves while the row is wholly visible, otherwise the area scrolls just enough to show the edge that was cut off, and a row taller than the area gets its top at the top. The API explorer keeps its selected endpoint in view the same way, now also while its list is still scrolling from the last key, without overshooting. See Scrolling (#132).
  • Chart annotations take a color of their own, a theme token or any color, for the line, the dot and the label, so a low, a high and a target can each have theirs; without it accent decides as before. Line and bar charts take .x_min and .x_max, what the first and last point stand for, and then an annotation's x is in those units instead of the point's index, as in the dot chart. See Chart annotations.
  • Tree table context menu: cui_tree_table_menu(ui, id, &node) after cui_tree_table_end builds a menu for the node under the pointer. A right click on a row opens it at the pointer and Shift+F10 opens it for the cursor row; a row outside the selection becomes the selection first, a selection of several stays. The open menu has the keys, and it closes when its node is hidden or removed or the table is disabled; it does not open while a row is held to drag. A data grid under an open menu no longer takes the arrow keys, Enter and Esc meant for the menu. Try it on the gallery's Files page. See Context menu.
  • Tree table drag and drop: .draggable lets rows drag to move nodes, before, after or into a folder, with a drop line or outline, a ghost with a count, edge scrolling, folders that open while you hold the drag over them, and Esc to cancel. The table reports the drop in cui_tree_table_events (dropped, drop_target, drop_where), .can_drop refuses places, and cui_tree_move relinks the nodes. Try it on the gallery's Files page. See Dragging rows.
  • CUI_PLATFORM=wayland requires native Wayland through SDL2 without falling back to X11. Linux auto is unchanged.
  • cui_image_update(ui, tex, x, y, w, h, rgba, stride) updates a region of an existing RGBA8 image texture in place through the active renderer's texture_update hook (stride == 0 defaults to w * 4), requesting a redraw without reallocating the texture for live video, camera previews, and dynamic bitmaps.
  • cui_frame_alloc(ui, size) and cui_frame_strdup(ui, s) expose CUI's frame-scoped arena so custom cui_canvas paint callbacks can safely capture temporary strings and slices that outlive the caller's stack frame until cui_end_frame.
  • cui_push_focus_scope(ui, id, active) / cui_pop_focus_scope(ui) (and cui_focus_scope(ui, id, active)): restrict Tab / Shift+Tab keyboard focus cycling to widgets built inside the active scope (such as the focused pane of a multi-pane workspace), while leaving other panes and their nested scopes clickable and undimmed. With no active pane, Tab visits unscoped controls. An open modal still takes precedence.
  • Custom canvases can take keyboard focus, route keys and committed text in order, and request a platform cursor for controls such as resize handles. See Canvas keyboard focus.
  • GPU renderers, one per system (Direct3D 12 on Windows, Vulkan on Linux, Metal on macOS), for apps that should not depend on OpenGL. They can also use less CPU than OpenGL, though not on every machine. Each makes its own device and swapchain on the window (it does not draw into a device the app already has). They draw the OpenGL renderer's draw data with its shader into the window's own swapchain. OpenGL stays the default, and the single-file distribution does not have them. Turn one on at build time (see Options) and choose it in the app's window settings or the environment (see Environment variables); if it cannot start, the app draws with OpenGL. A new benchmark, cui_gpu_bench, compares them with OpenGL and software drawing. See Platforms and Performance.
  • Trace viewer links: .links and .link_count draw dependencies between spans as curves with an arrowhead, from the end of one span to the start of another and across lanes, bright when they touch the selected or hovered span. hovered_link in the result says which link is under the pointer, and cui_trace_span_rect says where a span was drawn. See Trace viewer.
  • The dot chart and the event track take a label function (cui_axis_label_fn) for text a format string cannot write: month names, dates, a decimal comma. The dot chart's .x_label writes its x labels and the readout's x and .value_label the readout's value; the event track's .label writes its axis labels and the selected event's time. Each has a user pointer, and without one nothing changes. See Dot-matrix chart and Event track (#28).
  • Window state and placement: cui_app_minimize, cui_app_restore (back from maximized or minimized), cui_app_window_state and cui_app_set_position; cui_app_placement reads the state and the normal size and place, also while the window is maximized, and cui_app_desc.placement reopens a window there, maximized if it was. See Reopen where it was.
  • cui_app_maximize(app) maximizes the window on every backend, right after cui_app_create or on the first frame of a cui_app_run callback (NULL means the running app), for an app that opens maximized (#18, #19).
  • cui_wheel_region and cui_wheel_take: a custom canvas can take the mouse wheel to zoom, pan or scroll its own drawing, as the built-in charts and graphs do. Over the area the paint function marks, the wheel stops at the canvas instead of scrolling the page; everywhere else it scrolls as before. A canvas in a disabled scope leaves the wheel to the page, and its paint function sees cui_is_disabled. See Wheel input.
  • Android and iOS platform backends (experimental). -DCUI_PLATFORM=android compiles the library and an example against the NDK as a NativeActivity (platform/android/ has the Gradle shell, and platform/android/sideload-apk.sh builds the hello APK and installs it on a connected device), and -DCUI_PLATFORM=ios targets UIKit with an EAGLContext through platform/ios/ios.toolchain.cmake; iOS apps include the new cui/cui_ios_main.h so the backend can own UIApplicationMain. Both backends run the GL renderer in its OpenGL ES 3 mode or the software renderer, map a touch to the mouse, and feed the soft keyboard into cui_input_text. On rotation both relayout at the new size and rebuild their drawable (the Android EGL surface, the iOS layer renderbuffer) before the next frame.
  • Raw multi-touch input: cui_input_touch, cui_input_touch_move and cui_input_touch_cancel in, and cui_touch_count, cui_touch_down, cui_touch_pressed, cui_touch_released and cui_touch_pos out (up to CUI_TOUCH_MAX fingers). Backends may still feed the mouse beside it; desktop behavior is unchanged. Touch also goes through the input hook as CUI_INPUT_TOUCH and CUI_INPUT_TOUCH_MOVE events with the finger set, and finger -1 on the queries means the touch that landed first. A finger that lifts keeps its position for that frame, so a tap can be placed. See Touch input.
  • SQL syntax colors: .lang = "sql" in the code block, the code editor and the diff viewer. Keywords, types and NULL, TRUE and FALSE match in any case, as SQL does; -- starts a comment and /* */ comments run across lines. The keywords cover standard SQL and common extensions such as ilike, qualify, pivot and pragma (#33).
  • cui_dialog takes .draggable and .resizable: the header moves the dialog and its edges and corners resize it, inside the window and down to a minimum size; once resized, the footer stays at the bottom edge. Both are off by default, so existing dialogs do not change. See Dialog (#63).
  • cui_set_clipboard_text and cui_get_clipboard_text: copy from a menu item or a status bar ("Copy path") and read the clipboard for a Paste item, through the same platform hooks the copy button and text fields use (#32).
  • cui_app_follow_system_theme(app, follow) starts or stops following the system's light or dark setting while the app runs, for a theme switcher with Light, Dark and System. Stopping keeps the current theme, so a cui_set_theme after it lasts (on macOS the system setting used to undo it every frame); starting applies the system setting at once (#34).
  • Dither, four components drawn in dots on an 8×8 ordered dither, in theme colors, the same in the OpenGL and the software renderer. A dot is the color or nothing, never blended, so fills stay crisp and lower densities are always a subset of higher ones.
    • Dither progress (cui_progress(..., .dither = true)): solid up to the value, then dots that thin out over 60 points past the edge, drifting slowly forward; indeterminate, a soft band of dots sweeps the track. The drift asks for a frame only when it moves a dot, and reduced motion holds it still. See Progress.
    • Pattern meter (cui_pattern_meter): a stacked usage bar whose parts differ in color and in density, with one dot between parts, free space in the track color and a legend of dithered swatches. Hovering a part or its legend entry, or stepping with Left and Right, steps the others back and shows its name, value and share. .grayscale tells the parts apart by density alone, for print and color blindness. See Pattern meter.
    • Dither area chart (cui_line_chart(..., .dither = true)): every series filled with dots that thin out from its line to the bottom of its band; with .stacked (new for line charts) each band fades within itself and bands never mix into a third color. Lines, crosshair and tooltip stay as they are. See Charts.
    • Veil (cui_veil): covers a picture, a secret or a spoiler with slowly moving muted dots that keep its space, with an optional label and hint; a click, Enter or Space dissolves it dot by dot in about a quarter of a second, and it comes back the same way. The content takes no clicks and no keyboard focus while covered. See Veil.
  • Dither spinners, loading animations in the same dots, built on the dither primitive and drawn the same in every renderer. They ask for a frame only when their dots move and only while on screen, and reduced motion holds them on a still frame.
    • Spinner styles (cui_spinner(ui, size, .style = ...)): comet ring, dot matrix, fill and drain, radar sweep, ripple, upload, download and transfer, orbit and bouncing dots (with trails), document scan, pulse, spiral and plasma, in the text color or .color. Under 32 points a dot is one point, so a 14 point spinner sits sharp in a button or a chip. cui_spinner(ui, 20) is still the plain ring. See Dither spinners.
    • Status spinner (cui_status_spinner): the comet ring while a cui_status is busy, then a disc in the success or danger color with a check or a cross that holds for a moment and dissolves away (or stays, with .keep). It keeps its space, and returns false once there is nothing left to show. See Status spinner.
    • Skeleton group (cui_skeleton_group): placeholders built inside it share one shine that passes over all of them; with .dither = true they are drawn in dots with a band of brighter dots sweeping across. See Skeleton group.
  • Creative controls, eight components for editors, generators and design tools; six of them sit in a control well, a rounded panel with a label, a value and the control. See Creative controls and the gallery's new Creative controls page.
    • Status tag (cui_status_tag): an icon, a label and a tinted fill for pending, in progress (a slowly turning dashed ring), submitted, in review, success, failed and expired, or your own icon and tone. A small size, and an optional remove x.
    • Ratio slider (cui_ratio_slider): a whole split into two named parts with a bar to drag; the names and percentages stay readable at any split. Arrow keys, Shift for steps of ten, Home and End.
    • Gradient slider (cui_gradient_slider): the track is the value, a hue wheel, a white balance, an opacity over a checkerboard or your own stops, and the thumb is filled with the color under it. An optional tool button.
    • Step slider (cui_step_slider): a few stops marked with dots; the thumb snaps to each and glides between them. Optional names for the stops and an action button.
    • Palette strip (cui_palette_strip): joined swatches you lock with a click, and a shuffle that recolors the rest from a seed you keep, so the same seed gives the same palettes. The swatch under the pointer widens and shows its hex code.
    • Aspect ratio picker (cui_aspect_picker): each ratio drawn in its own proportions, a photo set or your own, an optional dashed Custom, and the size in pixels.
    • Option field with action (cui_option_action): a compact segmented choice and the icon button of the action it feeds.
    • Seed field (cui_seed_field): a seed in the monospaced font; the dice rolls a new one with rolling digits, and the lock keeps it.
  • Canvas and bars, six components for editors with a canvas:
    • Grouped toolbar (cui_toolbar): .style = CUI_TOOLBAR_GROUPED puts items in raised groups (cui_toolbar_group) inside one pill, with an inset radio set (cui_toolbar_radio) and a filled primary action (cui_toolbar_primary); CUI_TOOLBAR_FLOATING is one bordered pill for bars over content. Both keep the toolbar's keys and overflow menu, and every style gains cycle pickers (cui_toolbar_cycle), colored buttons (.tone) and a corner mark for buttons that open a flyout (.flyout, cui_flyout_mark).
    • Format bar (cui_format_bar): one call edits a cui_text_format: a color grid, bold, underline, link, a text style menu that previews each style at its size, alignment and list flyouts, and delete behind a small confirmation. Menu items take a font and text_size for such previews.
    • Live cursors (cui_live_cursors): other people's pointers over a canvas with name flags and chat bubbles, gliding to each new position at any frame rate; cui_presence_pill shows who is here and who is speaking, and cui_selection_ring marks what someone has selected.
    • Canvas controls (cui_canvas_controls): a floating zoom rail (in, a percentage that resets to 100%, out, fit and toggles of your own) that drives the node editor's cui_node_view, stepping through zoom presets and keeping the middle in place.
    • Result card (cui_result_card): a picture cropped to rounded corners with a status chip and a title and caption on a fade; its actions go in a floating toolbar under it.
    • Selection bar (cui_selection_bar): a bar that slides up under a list while something is selected, with the count, a clear button and labeled actions, and returns the action picked; Esc clears the selection.
  • Voice components, built on one dot waveform that only moves with real audio:
    • Voice waveform (cui_voice_wave): a voice drawn as fine dots, 13 rows mirrored around a center line, each dot as bright as the level covers it. It scrolls as you push levels, or shows a whole clip with its played part in the accent, a playhead and seeking by click, drag or arrow keys. Silence draws only a faint center line, and two voices can share one timeline. cui_voice_resample keeps a short waveform for a message. See Voice and the gallery's new Voice page.
    • Voice recorder in the chat composer: .mic adds a microphone button, and while the app sets .recording the composer shows a recording dot, the time, the mic levels scrolling by, Cancel and Send, at the same height, returning CUI_COMPOSER_RECORD, CUI_COMPOSER_CANCEL and CUI_COMPOSER_VOICE.
    • Voice note (cui_voice_note): a recorded message in a bubble with play and pause, its waveform as the seek bar, played and total time, and a 1x, 1.5x and 2x speed chip (CUI_PLAYER_SPEED). .mine tints it with the accent. The app plays the audio and passes the position.
    • Voice session (cui_voice_session): a spoken conversation with an assistant on one scrolling timeline, you in the foreground and the assistant in the accent, with a state label (Listening, Thinking, Speaking, Muted: CUI_VOICE_MUTED is new), a legend, the live transcript with the unspoken part dimmed, and Mute and End buttons.

Changed

  • The file browser's sidebar lists drives and volumes: drive letters with their labels on Windows, mounted data volumes on Linux and browsable volumes on macOS, under their own heading below Places. It scrolls, so custom places are no longer cut off after six, and Reload (F5) or reopening a file picker reads the drives again. The filter field now has the height of the path bar beside it (#96).
  • Renderers: a sixth shading mode, CUI_SHADE_DITHER, for the dither components. A renderer of your own needs its few lines from the reference shader in Rendering to draw them; everything else draws as before.
  • Line charts take stacked: each series sits on the ones before it, and the axis covers their sum. It used to apply to bar charts only.
  • A calmer series palette. The six chart colors keep their order (blue, orange, aqua, violet, yellow, magenta), so neighbours stay apart under color blindness, but now share one lightness and about one chroma in each mode. No series shouts over another or over the rest of the interface, and the light colors keep 4.2:1 or more on white.
  • Bar, donut and line charts step back so the data leads: faint dashed gridlines over a solid zero line, smaller muted axis labels, slimmer bars with a small gap inside a group, and on hover a soft band behind the column with a compact chip of its values. The donut ring is thinner, its segments are parted by real gaps, and each legend row has a thin bar showing its share.
  • Heatmap and calendar heatmap count in five steps from the empty surface up to the accent (a gray ramp under the neutral accent), so zero reads as empty and the steps read at a glance. Heatmap cells are smaller with real gaps, a Less to More key replaces the gradient scale, and hovering a cell rings it and lights its row and column labels.
  • Radial gauge drops the needle and the tick ring for three calmer styles, with the value as the hero: a segmented arc lit in the band colors only up to the value, a clean arc with round caps, its ends labelled and a target marker, and a slim ring with a line of detail. New options: style (CUI_GAUGE_AUTO picks the segments when there are bands, the arc otherwise), detail and color, and a band name shown as a chip while the value is in that band. The default sweep is now 270 degrees.
  • Treemap and radar. Treemap tiles are neutral, graded by size, with 3 point gaps, a label, a value and a share figure, and only the hovered or selected tile in the accent; small tiles keep a compact value. New selected option: a click selects a tile and a second click clears it. The radar has hairline rings, light fills under crisp outlines, points only on the series you point at (the last one otherwise) with a chip of the hovered value, and ring values kept off the lines.
  • Sankey nodes are slim (6 points) and colored by meaning, with the new node_colors option and the palette or neutral gray for the rest. Flows fade from their source's color to their target's, hovering a node or a flow lights its whole path upstream and downstream, and labels sit beside the nodes as the name over the value and share, with no plates over the flows.
  • Gantt chart bars are colored by state (done, active, planned) with their progress inside and a percentage at the end; planned bars are dashed and tinted. A new state field on cui_gantt_task sets it, and its zero value works it out from the progress and today. Dependencies are soft curves with small arrowheads, today is an accent line with a "Today" chip, weekends are faintly shaded, and a milestone is an outlined diamond with its name and date.
  • Uptime bars: healthy days are a slightly softer green, so incidents stand out more.
  • Calendar and date picker: the title opens the months of the year, and the year opens twelve years at a time, so a distant year takes a few clicks instead of a click per month. The arrows turn a month, a year or twelve years, the calendar keeps its size, and the picker opens on the days again (#27).
  • The voice orb (cui_voice_orb) is deprecated in favor of the voice components. It keeps working, but it has left the gallery and the docs site.

Fixed

  • Enter and Space on a focused month calendar activate the selected day, also when the pointer rests on another day (#124).
  • The single-file build compiles with GCC 15 at -O3 and -Werror=array-bounds; CI now checks it (#123).
  • macOS Metal renderer: the window's content no longer jitters while the window is dragged to a new size. Each frame drawn during the drag is shown together with the new window size, as the software renderer's already are.
  • Windows: the native open and save dialogs leave the process's current directory where it was. A save dialog suggesting another directory could return with the current directory moved there, which kept that directory from being deleted and changed what relative paths point to.
  • Windows: the folder chooser (CUI_FILE_FOLDER) no longer hangs when it is called from a thread in a multithreaded COM apartment. It then runs the dialog on a temporary thread in a single-threaded apartment and waits for it (#122, #126).
  • Windows: a save dialog given a full path in default_name opens in that directory and returns the path there, also when the directory does not allow creating files; it used to return the file name under the working directory. The dialog no longer creates a test file, which is left to the caller (#121, #125).
  • Windows: maximizing, minimizing or restoring a window no longer freezes it for about a second with vsync on. The window keeps presenting, without vsync, while DWM animates the change, and vsync comes back right after (#117).
  • Repeated software screenshots capture the whole frame when the destination buffer is reused (#101).
  • A week calendar or Gantt drag ends when the list shrinks, the component is disabled or read_only changes. A held mouse button can no longer resume that drag or move the item that took its place (#109).
  • Idle X11 OpenGL windows now sleep until an application event or timer wakes them. On Mesa DRI3, a swap notification could start another frame and keep an idle window drawing at the display's refresh rate (#104).
  • Hover fades, springs, veil transitions and hex-view scrolling now ease into motion when input arrives after an idle pause. Previously a button could show its final hover color on the first frame (#106).
  • Wheel areas follow their node's transform: the image viewer, knob, fader, emoji grid, trace and graph views, terminal, candlestick chart and cui_wheel_region canvases take the wheel where they are drawn, also on a carousel slide past the first, and the image viewer, trace and graph views and candlestick chart zoom around the pointer there and inside a scaled node editor card (#100).
  • Tab and Shift-Tab reach controls in open popovers inside a modal dialog, including nested popovers. See Dialog.
  • The file sidebar highlights one enclosing place or volume, so Home and its drive no longer appear selected together. Double-clicks after an idle interval use the receiving frame's time, fixing missed folder opens in an event-driven app.
  • Disabled flame graphs and timeline editors ignore wheel, pointer and keyboard gestures (#85).
  • Disabled node editors ignore wheel zoom and cancel in-progress gestures (#85).
  • A disabled veil keeps its cover visible and leaves clicks available to the widgets behind it (#85).
  • A candlestick chart ignores queued wheel events after it is disabled (#85).
  • Disabling a time histogram cancels its active selection drag (#85).
  • Read-only and disabled query builders leave the supplied rules unchanged (#75).
  • Read-only week calendar events and Gantt tasks can be activated without editing them (#75).
  • The week calendar checks the drag threshold even when motion and release arrive in the same frame, measured up to the release, so a pointer that moves on right after a click still opens the event (#75).
  • The trace viewer reports view changes when a measurement is drawn or cleared (#71).
  • Activating a dot chart from the keyboard before moving its cursor reports the middle sample (#71).
  • Clicking a Sankey ribbon reports which input link was clicked (#71).
  • Virtual lists show the remaining rows immediately when the list shrinks while scrolled (#67).
  • Data grids keep the remaining rows visible when the row count shrinks while scrolled (#67).
  • Sortable table headers and selectable rows show a keyboard focus ring (#67).
  • Adding a filter opens the new chip's value list (#67).
  • Plain-text code editor lines remain visible after leading spaces or tabs (#87).
  • Chat typing dots stay still and stop requesting frames with reduced motion (#65).
  • Running task glyphs in agent plans and tool calls stay still with reduced motion (#65).
  • Plain spinner arcs, including running jobs and tests, stay still with reduced motion (#65).
  • Split panes share the available space when their minimum sizes do not fit (#73).
  • A vertical scroll view preserves horizontal wheel input for swipe actions inside it (#73).
  • A wheel picker or ruler can use the vertical wheel inside a scrolling page (#73).
  • Disabled dropzones and avatar upload targets leave dropped files available to the application (#77).
  • Image loading accepts UTF-8 file paths on Windows (#77).
  • The JSON viewer reports malformed number literals and string escapes as invalid JSON (#68).
  • Scrub inputs discard invalid numeric drafts and keep the last valid value (#79).
  • Money inputs reject drafts whose complete grouped amount would not fit the field (#79).
  • Rolling numbers draw the complete label when its digits or affixes do not fit the animation (#79).
  • Expandable text keeps keyboard focus when its toggle changes label (#81).
  • A dismissed hover card stays closed until the pointer leaves its anchor (#81).
  • A closing command palette leaves keyboard input available and cannot activate a command (#81).
  • An arrow press moves the tab bar by one tab (#81).
  • Choosing a speed dial action preserves the caller's disabled scope (#81).
  • Gradient sliders reach both endpoints and leave idle and disabled values untouched (#83).
  • Ruler wheel steps stay in range when the maximum is between tick marks (#83).
  • Date and color pickers show keyboard focus on their triggers (#83).
  • An open color picker reflects external RGB changes and preserves alpha while editing (#83).
  • Keyboard focus keeps the wheel labels and ruler scale visible (#83).
  • The time ruler of the flame graph, the trace viewer and the network waterfall reads hours-long and days-long captures: past 20 seconds it steps like a clock (30 s, 1, 2, 5, 10, 15 and 30 min, 1, 2, 3, 6 and 12 h, then days) and labels each tick from its largest part down, such as "4 min 50 s" or "33 d 10 h 30 min", where it used to print "2851200 s". Steps under a second keep their labels; with whole-second steps, ticks from a minute on read as minutes and seconds ("1 min 10 s" where it said "70 s"). Span tooltips and the measured range give long durations in min, h or d.
  • The wheel scrolls a text area before its enclosing scroll view, then reaches the outer view at the text area's edges. Diagonal input can scroll the text vertically and the outer view horizontally (#58).
  • Tag input enforces its tag limit for every tag in a batch (#58).
  • Pasting a different complete one-time code emits another completion event (#58).
  • A select opens with Enter without also picking the highlighted item, and a searchable select returns focus to its trigger when its list closes, with animations on too, so Enter reopens it (#58).
  • Number fields reject nonfinite drafts and display the accepted value on Enter or focus loss (#58).
  • A confirmation popover opened with Enter waits for a separate activation.
  • After Escape leaves a text field in a dialog, the next Escape can close the dialog.
  • A disabled password field's reveal button ignores clicks and is skipped by Tab.
  • Timed toasts expire on schedule after idle, and their actions stop accepting input once dismissal begins.
  • The first tooltip waits for a full hover, and an idle window shows it at the requested wakeup.
  • Each arrow press in a toggle group moves focus by one item.
  • The range slider supports adjusting either thumb with the keyboard and shows which thumb has focus.
  • Breadcrumb links and numbered page buttons show a focus ring when reached by keyboard.
  • Pagination uses its parent's inner width to choose the compact layout, including in unnamed boxes.
  • Steppers with repeated captions adapt independently to the width of their own rows.
  • macOS: Quit from the app menu (Cmd-Q), the Dock or AppleScript ended the process from inside the event loop, so nothing after cui_app_run ran: no cleanup, no saving, and libraries that check their resources at exit could crash. It now ends cui_app_run (or makes cui_app_frame return false) as closing the window does, at once even when the app is idle (#29).
  • Nav items: when no item of a group was selected, the highlight stayed on the item selected before, and the next selection glided over from there. The highlight now goes away, and the next selection appears in place (#35).
  • Text areas told the input method the whole area as the caret, so the IME candidate window opened at the area's top-left corner or under its bottom edge. set_text_input_rect now gets the caret's line, one line tall, as in single-line fields and the code editor (#56).
  • Windows: the IME opens at the caret. The Win32 backend implements set_text_input_rect: it sets the IMM composition window to the caret, the candidate list under the line with the line excluded so it is never covered, and a hidden system caret for input methods, magnifiers and screen readers that follow it, in client pixels at the window's DPI. Before, Chinese, Japanese and Korean input methods opened their windows at the top-left of the screen. Committed text arrives once, as before, including characters outside the BMP (#56).
  • Docs site: input methods work in the live previews. Browsers place an IME only at a focused text input, and the previews are canvases. While a text field in a preview is being edited, the keyboard now goes to a hidden text area kept at the field's caret: the candidate window opens there, the text being composed shows in place, and the committed text goes to the field (#56).
  • macOS: the IME opens at the caret. The Cocoa view answered firstRectForCharacterRange with the view's top-left corner, so the candidate window opened there. It now returns the caret from set_text_input_rect and tells the input context when it moves (#56).
  • X11: the input method is told where the caret is. XIM hands a caret position (XNSpotLocation) to an input method only in the XIMPreeditPosition style, which the X11 backend never asked for: it created its input context with XIMPreeditNothing and did not implement set_text_input_rect, so the candidate window opened where the input method guessed. The context now asks for a spot when the input method offers one, together with an X font set, which that style requires for the preedit, and sends the caret in window pixels whenever it moves. When there is no font set or the style is not offered, it keeps the old style (#56).
  • SDL2: the IME candidate window follows the caret. The SDL2 backend now implements cui_platform_iface.set_text_input_rect (SDL_SetTextInputRect) and asks for the system candidate list with SDL_HINT_IME_SHOW_UI. Before, the candidate window never moved with the caret (#56).
  • An empty text field showed no caret. At offset 0 the caret bar stands in the field's padding, left of the text, and the text's clip rectangle cut all of it away: an empty focused field looked dead and never blinked. The bar is now drawn against the field's clip, so it shows and blinks like anywhere else, with or without a placeholder (tests/test_main.c covers it).
  • Memory safety: a regex with a (?: ) group wrote outside its capture array; the histogram slider read a negative bin count or NULL bins; blame read a NULL commit list; a data grid or table cell text before the first row read before the column array; long filters overflowed the kdialog and macOS file dialog commands; growing the state store could lose entries or loop on lookup; a glyph wider than the atlas was drawn past its row and the buffer; the software renderer read before empty textures and wrote past textures on overhanging updates; a reorder list that shrank under a press could move an item never dragged; the Windows file listing ran past a names buffer filled exactly; and the local time offset read unset fields for times out of range (from #64).