Skip to content

gui_toolkit 0.260.0

Choose a tag to compare

@sachahjkl sachahjkl released this 14 Nov 18:21
· 1021 commits to master since this release
v0.260.0
be2f395

Added

  • Window commands work in every page and whatever has the keyboard: ui.Command.scope = .Window marks the palette, the keyboard shortcuts, the settings, close and quit. command_pressed takes their keys while a text field, a list or a docked or floating view has the keyboard, and over a view shown as a dialog (the settings of a program). A widget that owns every chord while it has the keyboard keeps them with ui.keys_claim(owner, ..pass); the shortcut recorder (hotkey_field) does while it records. ui.chord_pressed(chord, scope) reads one chord by the same rules, for a program with a table of its own. ui.command_window_typing_keys lists a window command's key that a field would keep: a program's test expects none.
  • The selection of several rows, the same in every list (ui.Item_Selection): a list, a virtual list or a table with multi selects as a file manager does. A click selects a row alone, Ctrl+click toggles it, Shift+click selects the range from the anchor (a second one replaces it), and Ctrl+Shift+click adds the range. Shift with the arrow keys, Page Up, Page Down, Home and End extends; Ctrl with them moves the active row only. Ctrl+Space toggles the active row, Ctrl+A selects all, and Escape clears. A program's own grid gets the same rules from item_selection_click, item_selection_move and item_selection_key. The marks (list_is_marked, list_mark_count, marks) are replaced by list_is_selected, list_selected_count, list_selected_ids and selected_changed. A selection is always explicit: one row clicked is in it, and the active row can be outside it. Screen readers hear a multi list as multiselectable.
  • A command's key that types text leaves it to a focused field. ui.command_pressed no longer takes a letter, a digit, a punctuation mark, Space or Backspace (alone or with Shift) while a line edit or a text area has the keyboard: the field gets the character, and the command waits until no field has the keyboard. ui.command_key_types_text(chord) says whether a chord types text, and ui.command_typing_keys(table) lists the keys of a table that do, for a program's unit test. A program whose field always has the keyboard expects none: its menus then never show a key that cannot work.
  • A selection dragged to the edge of a scroll view scrolls it (ui.drag_autoscroll, ui.drag_autoscroll_own): near or past the edge, the view scrolls toward the pointer, slowly in a band of 1.5 em inside the edge and faster past it, and the selection extends to what scrolls in, so a selection can span several screens. Text selection, text_edit, line_edit and the terminal's grid do it; nested views scroll the innermost one that can still move that way.
  • A tool bar can centre its groups: ui.toolbar(id, {align = .Center}) centres each line of a wrapping bar, the last one too, and the groups left in a folding bar in the room before its "…" button and its pinned groups. Cancel and Done stay at the bar's end, in a wrapping bar at the end of its last line. By default (.Start) the groups start at the bar's start, as before. In every bar, an item now sits on the middle of its line, a control taller than a tool too.
  • ui.toolbar_menu_show(id) opens a tool bar's "…" menu: as a click on its "…" button does, under the button. A picture or a tour can show the menu open. It returns false while the bar shows no "…" button yet; call it until it returns true.
  • A tool bar's tool takes its tooltip and its menu's search: ui.toolbar_tool(id, {..., tip = "Zoom"}) shows that tooltip whatever the tool shows, its words too (a zoom showing "100 %"). Without a tip, a tool with a command shows the command's tooltip. menu_search = false opens the tool's menu without a search field, where a typed letter selects an item (a menu of a few fixed choices); by default its menu searches, as every menu.
  • A tool bar's tool opens a menu: ui.toolbar_tool(id, {..., menu = "insert_menu"}) opens the menu that the program builds as always (if ui.menu("insert_menu") { ... }, outside the bar). In the bar the menu opens under the tool, which stays lit while it is open. Folded into the "…" menu, the tool is a submenu row, and the same block builds its submenu, by the pointer or by the keyboard. The spacing of a tool bar is now one rule for every program: 0.2 em between two tools, 0.5 em between two controls, 0.8 em between two groups or a separator's room, all following the density.
  • A stack's tab strip with "+", moves and window-like buttons: View_Options.tabs_always shows a stack's strip for one view (a terminal). View_Options.new_tab: proc(data: rawptr) puts a "+" right after the last tab: the program opens a new instance, which joins the stack as its last tab; the same act is in the band's menu and the palette, in new_tab_label's words. The shown view's moves (Float, Open in a window, Re-attach) sit right after the tabs, its tools after them, and at the right end Minimise (top and bottom zones, remembered), Maximise (the stack fills the dock space; again or Escape restores; ui.views_space_maximised) and Close (every view of the stack), drawn as the window's caption buttons.
  • Views: a size per opening, what floats over a view, moved at a direct opening: ui.view_size(v, width_em, height_em) sizes this opening's dialog (a viewer hugs its picture, past the 46 em cap of a dialog sized by its words). ui.view_occluders(v) and ui.views_floating_rects(vs, s) give the rects of the floating windows and dialogs over a view, for a page with a native child window to step aside. A view that opens straight into a window of its own now gets moved too.
  • Views with instances reopen at start: each instance of a view (a journal per service, a terminal per shell) has its own line in the views' memory, with its presentation and its place. ui.view_restored_instances(vs, id) lists the instances open at the last quit; the program reopens each with its own data, and each opens where it was. view_was_open(vs, id, instance) now reads that instance's line.
  • The layout of a dock space as at first: ui.views_space_reset(vs, name) puts a space's zone sizes, splits and tabs back to their defaults and every view docked there or homed there back to its home, for a program's "Reset the layout" command.
  • Dock zones sized by a share of their space: View_Options.extent_frac and View_Dock_Options.extent_frac / extent_em (per edge, also for views_frame(vs, o)) give a zone's size at first as a share of its space's width or height, so it follows the window's size. A zone the user resizes keeps its unit: a share stays a share in the memory (left.frac=0.300).
  • A program asks which view has the keyboard, and opens its panes at the first start: ui.view_has_focus(vs, id, instance) and ui.views_focus(vs) say whether the focus is in a view, whatever its presentation. ui.view_restore(vs, id, data, first_start_open) opens a view at start-up when it was open at the last quit, or at the very first start when asked; a view the user closed stays closed. F6 and Shift+F6 between the areas of a window are now read last in a frame: a program that binds F6 itself keeps it, wherever it reads its keys.
  • A font picker for the family settings: the interface, monospace and reading font settings open a list of the system's families, each name drawn in its own family, with a search field that finds a family as it is typed. Default is at the top, the current family is selected, the monospace families are marked and come first for the monospace setting, and a choice is set at once. A program's own screen uses it with ui.font_picker (its families read once on the chores through a ui.Font_Source, ui.font_system_source for the system's; docs/font-picker.md). gt:font names the family of any face with font.family_of (an embedded or file face reads its name table), and font.system_families now returns font.Family values (name, monospace): read .name where it returned names.
  • A setup logo given later, and the views' palette commands kept: setup.set_logo(&d, logo) gives the setup dialog its logo after it opened (a logo made from a task's answer), shown from the next frame. ui.View_Commands with ui.views_commands_update keeps the views' palette commands in memory of their own, made again only when a view opens, closes, moves or changes its title, or the language changes: the palette holds its table while it is open, which temporary memory did not allow.
  • Panels split inside a dock zone: a zone holds several stacks of panels, one above the other at the sides, side by side at the top and the bottom, each with its own tabs (none for a lone panel) and a handle between two. While a view is dragged over a stack, a cross shows at its middle: its centre makes the view a tab there, its sides put it in a new stack before or after. A dock space without content (ui.views_dock(vs, name, {})) has a centre zone where panels go. Each zone's axis and its stacks' shares are remembered with the space (ui.View_Space_Memory, views_space_format, views_space_parse), and each view's stack with its place (View_Place.stack).
  • A view detaches into a window of its own: "Detach into a window" in a view's header and menu, and the palette's "Open <title> in a window", put the view in a window of the system, with no frame where it shows nowhere and no flash: the old place stays until the window's first picture is out. The window's header has Re-attach and Close view; Escape and Ctrl+W close the view; the system's close of the window brings the view back home, still open. The focus goes into the window and back to the main one when it closes. On Windows and X11, a floating window let go outside the main window opens in a window there, and a view's window dragged by its header onto the main window's dock targets docks again; on Wayland the buttons and the menus do it (platform.positions_known, asked at run time). The window's size and place are remembered, and a view open at quit opens there again. host.view_windows(&app.main) is the backend for a host program (ui.views_set_windows); session.view_windows(s) the one of the tests, with session.view_window, session.window_shown and session.system_close. View_Options.moved is called when the view changes window; the scroll and the focus follow it (ui.state_carry); its settings follow the main window's (ui.style_follow). Without a backend, or when the system refuses a window, the view floats inside its window and says so. The docking example shows every presentation.
  • Views dock as panels around a window's content: ui.views_frame(vs) around the content gives the window four edges where views dock (View_Options.home = .Panel, home_place), and ui.views_dock(vs, name, o) is a dock space inside the program's own layout. A panel alone at an edge adds nothing to what it draws; two at one edge are tabs. The hover of a panel's top shows its Float and Close icons, a right click there opens its menu, and the menu of every view now docks it left, right or at the bottom. Dragging a dialog's header, a floating window's header, a panel's tab or its title (ui.view_drag_handle(v, box)) shows four targets at the edges: let go over one, the view docks there; elsewhere it floats. The handle of each edge resizes it, and the sizes are remembered. The code of a panel or of a floating window reads keys only while the focus is in it, and it reads them before the content; F6 and Shift+F6 go through the content, the panels and the floating windows; Ctrl+W closes a panel. ui.views_commands(vs) and ui.views_command_run give the palette the same acts ("Dock Files to the right", "Float Files"...), in the language in use. The docking and panes examples now use views.
  • A dialog detaches into a floating window inside its window: the small Detach icon of a dialog's header, or a drag of the header, makes the view an internal window: not modal, moved by its header, resized by its edges and corners, in front when pressed, with Re-attach and Close in its header; Escape and Ctrl+W close it while it has the focus. The views remember where each one was and whether it floated (view_present(vs, id, .Internal) from a program; View_Options.first = .Internal). A right click on a view's header opens its menu: Open as a floating window, Re-attach, Close (Detach into a window and the docks come with the next presentations). View_Labels has the words of the menu (reattach, window, floating, dock_left, dock_right, dock_bottom). The header of a dialog whose program gives no tools has no tools box.

Changed

  • Text a person reads is selectable by default: paragraph and rich_paragraph select and copy without a flag (selectable = false for a control's part, as a list row's lit name), a diff's lines always (View_Options.selectable is gone), the file browser's preview, an empty state's title, Markdown without its list markers. A control's label stays unselectable. Selectable text inside a clickable box keeps the box's click: a press that moves more than 4 px first selects, and the box gets no click. Ctrl+C and Ctrl+Insert are the selection's while the last press made it (selection_takes_copy): a program's command on the chord waits until a press elsewhere. A copy across Markdown's blocks has a blank line between them, as the source (.Selection_Block).
  • Escape on several selected rows keeps the cursor's row: in a list with multi, Escape takes several rows back to the cursor's row alone; on one row or none it is the program's Escape (cancelled: clear its filter, hide, close), where it first cleared the selection. A list never shows no row while an act still takes the cursor's. ui.item_selection_escape gives the same rule to a program that reads Escape itself, and ui.item_selection_rekey keeps a row's selection when its identity changes (a row unfolded whose id carries its height).
  • Every scroll bar takes the desktop's form: the bars of views, lists, menus, the palette, text areas and bars with marks have a pale trough, an arrow button at each end and a thumb with a gradient across it and a grip, as ShojiWM draws them. The pointer over a bar lights its buttons and gives its thumb the theme's accent; the part under the pointer and the part held go a step deeper. The colours come from the theme: a dark theme gives the desktop's dark bar, a light one its light bar. By default a bar always shows while its content overflows. "Hide the scroll bars" stays an option, off by default, and is now scrolling.scrollbar_autohide (it was scrolling.autohide_scrollbars): on, a bar shows only while its view moves, while the pointer is over the view or while it is held, and fades otherwise. ui.set_scrollbar_arrows and "Scroll bar arrows" are removed: the arrows are always there. An arrow moves the view a line, and repeats after 400 ms then every 60 ms while held; a press on the track moves it a page instead of jumping there. The new setting "Scroll bar width" (scrolling.scrollbar_size, ui.set_scrollbar_size) is Thin, 9 px and the default, or Wide, 17 px. ui.scrollbar_paint takes the bar's parts and its state (ui.Scrollbar_Parts, ui.Scrollbar_Look); Text_Edit_Draw.bar_hot and bar_held are bar_looks.
  • A floating window opens in the middle of the content: a view that opens as a floating window with no remembered place is centred, across and down, over the program's content (beside the docked panels), instead of near the top of the window, where it covered the page's heading. One detached from a dialog still opens where the dialog was.
  • A view's window follows the program's title bar setting: with the program's own decorations (window.system_title off), a view in a window of its own has no system decoration; its header is the window's title bar (dragged, maximised by a double click) with the window's minimise, maximise and close at its right end, the same as the main window's; that close puts the view back where it belongs. With the system's title bar, the header sits under it as before. A change of the setting applies to the open view windows at once.
  • setup's backdrop knows where the dialog is: Setup_Options.backdrop is now proc(v: ^ui.View, user: rawptr), so a program paints its scrim only when v.presentation == .Dialog (floating, docked or in a window of its own, the setup has none).
  • A view's window looks and behaves like the program's window: from its opening and at every change, it takes its owner's font, size, row height, paddings, radius, zoom, theme, fonts and bold/italic families (shared, never copied: ui.state_families(s) reads them); its title bar is dark or light as its owner's (platform.is_dark_title), and with host.view_windows its ground, its frames after input, partial redraw and the program's input hook are its owner's (the hook's h.owner says it is a view's window). Ctrl+=, Ctrl+-, Ctrl+0 and Ctrl+wheel in it zoom the whole program. A move of the pointer over the main window no longer rebuilds the views' windows (ui.pointer_only_build, ui.view_window_due).
  • The file browser is a view: the toolkit's file dialog (ui.file_dialog) is now the view "file_dialog", one per window, as every other dialog: its header is the views' (its title and its icon), its size is remembered, and the person can float it, dock it or open it in a window of its own from its header's menu. Its question before saving over a file is a confirmation over it. What it does is unchanged: its sources, its path bar, its keyboard, done called once (the close cross and a press outside are Cancel).
  • Views across several windows, an icon per opening, the next field focused: host.view_windows(&app.shared) is now one backend for every window of a program, set once (it took one owner window: a program of several windows set it again in each window's build); each view's window is made after the frames of the window that owns the view. ui.views_commands(vs, allocator, owner) and ui.views_commands_update(vc, vs, owner) list only the moves of the views a window owns, for that window's palette. ui.view_icon(v, icon, icon_font) gives a view an icon per opening, as view_title gives a title. ui.focus_next_field() gives the keyboard to the next field built (a number's value field included), so a view focuses its field on its first build without knowing a widget's inner keys. Fixed: a zone's tab that is not shown was built a second time, over its zone, which kept two panels shown and took the presses on the tabs.
  • A tool bar wraps or folds, and its "…" dropdown is a menu: ui.toolbar(id, {overflow = .Wrap}) takes more lines when the window is too narrow, each group moving to the next line whole, the pinned groups (Cancel, Done) at the end of the last line. .Fold keeps one line and folds what does not fit into the "…" button's dropdown, which is now an ordinary menu: one section per folded group under its title, separators between sections, each tool a row with its icon, label and shortcut, each control a row with its label at the left and its widget at the right. The arrows, Enter and Escape work in it as in every menu. A program declares each item once, in either mode:
    • ui.toolbar_tool(id, {label, icon, shortcut, command, on, words, intent, ...}) is an act: a button in the bar, a row in the menu; it returns true when clicked in either.
    • if ui.toolbar_control(id, {label}) { ... } is a property whose widget the block builds, in the bar or in a menu row (ui.toolbar_in_menu() says which).
    • ui.toolbar_item is gone; ui.toolbar_group takes a title; the bar puts its pinned groups at its end itself (no spacer); ui.toolbar_separator() draws a bar's separator; ui.menu_control(label) makes a row with a widget in any menu.
  • The confirmation, the prompt, the palette, the sheet of the keys and the setup are views: they open once, answer once, and need nothing set up: each is a view of the window being built (ui.views()). Migration: ui.confirm(id, &open, o) each frame becomes ui.confirm_open(id, o) once (its options are cloned) and ui.confirm_answer(id); ui.prompt(id, &open, &field, o) becomes ui.prompt_open(id, &field, o) and ui.prompt_answer(id); ui.palette_open(&p) and ui.palette(&p, commands, disabled, o) become ui.palette_set(&p, commands, disabled, o) when they change, ui.palette_open(&p) and ui.palette_chosen(&p) -> (index, mods, ok) (Command_Palette.open and .size go: ui.palette_is_open(&p), the views keep the size); sheet.open = true and ui.shortcuts_sheet(&sheet, id, commands) become ui.shortcuts_sheet_open(&sheet, commands); setup.dialog(&d, cfg, em, logo) becomes setup.open(&d, cfg, logo) in a build and setup.update(&d, cfg) each frame (Setup_Options.close and Dialog.size go; a screen of the program's own calls setup.start); prefs_page.install_frame(&in) loses its em. Each answer comes one build later than the old return value.
  • Views replace modal dialogs: a dialog is now a view, a build procedure and its data declared once by an id (ui.view_register, ui.view_open, ui.view_close, ui.view_ended, ui.view_end). Every window's ui.State has its views, with nothing to set up (ui.state_views(&state), or ui.views() for the window being built); a program that keeps the user's choices in a file, or whose windows share their views, owns one ui.Views, reads its file with ui.views_init(&vs, {path = ...}), gives it to each window with ui.set_views(&state, &vs) and ends it with ui.views_destroy. The program opens a view and reads its answer in a later build; the toolkit builds it at the end of the window's build, draws its header (icon, title, a small Detach icon, the close cross) and remembers per id the dialog's size, its presentation and whether it was open at the last quit (view_was_open). Escape, Ctrl+W, the close cross and a press outside end it with VIEW_CANCELLED. A dialog still shows only once its layout has settled, and fades in. Migration: if ui.modal(id, &open, {width_em, size = &size}) { body } becomes ui.view_register(ui.views(), id, build, {title, width_em, resizable = true}) and ui.view_open(ui.views(), id, &data), the body in build :: proc(v: ^ui.View, data: ^T); ui.dialog_header goes (View_Options.title, icon, ui.view_title, ui.view_header_tools); open = false in the body is ui.view_end(v, code); ui.modal, Modal_Options, ui.dialog_header, Dialog_Header_Options and ui.modal_corner are no longer public.
  • The family settings apply live, in every program: prefs_page.standard_watch now applies appearance.text.ui_font, mono_font and prose_font itself, with no restart. The family's face is loaded on a chore (with its bold and italic) and swapped in when it comes, in every window, views' windows included; Default puts the program's own face back at once.
    • ui.Text_Face, ui.set_text_faces, ui.use_text_family, ui.state_text_face, ui.text_face, ui.program_text_face, ui.text_family, ui.text_faces_serial, ui.text_font_source, ui.prose_font, and ui.Family_Face with family_face_set and family_face_destroy for a face of a program's own.
    • Standard_Targets.faces gives the program's own faces, Standard_Targets.font_source the families' source; Page_Options.default_fonts, Default_Fonts and Page_Options.font_source are removed.
    • ui.mono_font(), rich text, text edits and markdown tables read the chosen monospace face; a markdown view's text is in the reading face when View_Options.prose is 0.

Fixed

  • On Windows, the paths of the log and of a crash report have backslashes only: log.path and crash.last_report gave C:\Users\you\AppData\…/program.log, with both separators, to the program that shows, opens or copies them. They now have the system's separator only.
  • Wayland: a window knows it is in front without a keyboard. Window.active and focused also follow the compositor's activated state of the toplevel, not only the keyboard's enter and leave. On a seat with no keyboard (a headless session, a touch screen) a window in front was never active, and a program that hides its window only when it is in front kept bringing it forward instead.
  • No holes where the window showed what is behind it: a translucent window that blends in linear light (every window on Windows with DirectComposition, and a Linux window composited with its alpha) no longer shows the desktop or another window through a few pixels: around inline code in a table, along the fading edges of a list, under the text. What is drawn is now kept within its normal range in every frame format, so these windows show exactly what an opaque window shows. render.init_offscreen takes half_float to draw a frame in that format, render.read_pixels_float reads its values as they are stored, render.frame_is_half says which format a frame is in, and the test sessions take half_float with session.capture_float and session.out_of_range. The partial redraw check (render.damage.verify) now also compares frames stored in half floats.
  • Nothing is drawn under a scroll bar any more: a view that scrolls lays its content out beside its bar while the bar shows, so the words and buttons at the right end of a row ("Esc close", "Open", a time) stay left of it, in every list, table, menu, the palette, markdown views, the settings page and text areas. When the content fits again the room comes back, and a content that only overflows beside the bar does not take it: the room never flickers. With "Hide the scroll bars" the room stays and the bar fades in it. The new setting "Scroll bars over the content" (scrolling.scrollbar_overlay, ui.set_scrollbar_overlay, off by default) draws the bars over the content's edge instead. ui.scrollbar_room says the room a scroll box keeps; programs no longer leave room for a bar themselves (ui.scrollbar_gutter() is now only a bar's thickness).
  • No second line under a frame's top edge: in the machined, edged, gradient and glass finishes, a header, a row or a stripe inside a frame, a card or a well no longer gets the lit rim of a raised face. Such a box is part of the face it sits in where it meets that face's top edge or runs across its whole width, so the face's own edge is the only line there. A table's header no longer shows a second line just under its frame's border. Buttons, cards, chips and dialogs that stand on their own keep their rim.
  • The settings open fresh after a jump to one setting. When the palette opened the settings on one setting, closing them and opening them again showed that setting's search still. Now the next opening shows the page you had, with an empty search. A search you typed yourself stays, as the last page does.
  • A tool bar's separator never starts a line: in a wrapping bar, a group that goes to the next line no longer starts it with a separator and its room. A group's separator shows only between two groups on one line, in both modes. Two groups on one line stand a separator's room apart, with its line or without one.
  • A slider in a tool bar keeps its track, and a one-item section no longer repeats its name: a slider is never narrower than its track and its value (about 10 em); with no width given, in a tool bar's control or a menu's control row, it is 12 em. Before, it showed its knob alone, its value far from it. In a tool bar's "…" menu, a group of one item shows its row without the group's title, so "Colours" no longer stands over "Colour".
  • A bar no longer gets a frame from the finish: in the machined, edged, gradient and glass finishes, a box that declares its sides (a sidebar with its right line, a top bar with its bottom line) shows those lines alone, and a bar against the window's edge shows no frame. Before, the finish drew a lit line one pixel inside its top, left and right, so a sidebar under a top bar showed a double line. New ui.box_rimmed says whether a box gets that line; ui.paint_rect_corners takes rim = false to paint a face without it.
  • A panel of a hidden section waits there instead of floating over the page: a view docked in a dock space of the program's (views_dock) that is not shown (another section is) stays open but hidden, and shows in its place when its section shows again. It no longer appears as a big floating window over the section shown (inspecteur's service details over Mission Control at start). Only a panel of the window's frame, in a window with no frame, still floats.
  • The toolkit's name stays as it is in Diagnostics. The line that says which version of the toolkit a program uses reads "gui_toolkit" in every language; French no longer shows it as "Boîte à outils".
  • A floating window no longer cuts its labels: a view that opens as a floating window with no remembered size is as wide as what is in it asks (its width_em at least), centred, and no rect, remembered or resized by the user, makes it narrower than what is in it on one line. A form_row's label is now at least its words on one line, the control beside it giving way ("Saturation" was cut to "Sa…").
  • A "+" whose tab comes later still fills its stack, and the views' words follow the language: a stack's "+" now waits for the instance its new_tab asked for: the next one of that kind that opens within ui.NEW_TAB_WAIT_MS (10 s), even frames later (a shell a server makes), joins that stack as its last tab. View_Options.new_tab_label and the words a program gives Views_Options.labels are translated when shown, so a change of language during the session shows at once, as the titles already did.
  • A panel's menu no longer replaces its body's own: a right click in the top band of a docked view opens the view's menu only when nothing of the body takes it (a tab there with its own menu keeps it). New ui.hit_box_at(p) and ui.pointer_on_at(box, p) say what a press at a given point would act on and what is in front there, by the last layout, so a program can decide per event of a batch, not only at the pointer's last position.
  • Letters typed right after a view opens are no longer lost, and nothing waits: a view that opened as a floating window or as a panel lost the letters typed in its first frames (only a dialog kept them). Every view is now built in the frame it opens, so the field it focuses has the very next keys; a view opening in a window of its own gets what was typed before its window showed. A panel whose dock space is not shown now appears at once as a floating window, and goes to its space when the space shows.
  • A font setting at its default names the font in use: the interface, monospace and reading font settings showed an empty field when they were at their default. They now show the family the program draws in, marked as the default ("Roboto (default)"). The program's own font is named, whatever family was chosen before (Standard_Targets.faces).
  • A view's window hides with its main window: a program that hides its main window (host.host_hide) left the windows of its views on the screen, frozen. They now hide with it and come back with it (host.host_show), where they were; a window that was about to show waits for the main one. ui.views_windows_follow(state, shown) does it for a backend of the program's own; session.hide and session.show in tests.
  • Windows open again after the Wayland compositor ended the connection: once the compositor ended a program's connection (a protocol error, the compositor restarted) and no window of it was left, every new window was refused ("no window: libwayland-client"). The next window now starts a new connection. While a window of the old connection lives, nothing of it is taken down.
  • A test session's failed action says why at once: on Linux and macOS, an action of testkit/session that fails (a box not found, a wait past its bound) now fails the test with its message and goes on with the next test, instead of a "Test timed out" with no message. Windows keeps the time limit of 0, after the message, because of how its test runner handles signals.
  • The Rendering page shows its settings: it showed only a folded "Advanced" part and was empty otherwise. A page whose settings are all advanced now shows them, under a sentence that says they are technical and that their defaults are right for most people; the "Advanced" fold stays on the pages that have ordinary settings too. The Input, Delays and menus and Rendering pages also say in one sentence what they are for.
  • The Updates page's Check now keeps its words on one line: its button was squeezed to its longest word and wrapped onto two lines ("Vérifier / maintenant") although the line had room. The buttons under the update preference now take the width of their words, and wrap only when the page is too narrow for them.