Repository navigation
v0.2.8
App-owned block menus and handle glyphs, mention triggers with icons, chips in text fields, menu row indents, terminal cursor shapes, and a browser console and inspector.
New
editor::AppExt::set_block_menu_itemsreplaces the block handle's menu, which iseditor::block_menu_defaults()until it is called: the slash menu's blocks under "Turn into", then Duplicate and Delete. ABlockMenuItemis aHeadingor aRow(SlashRow).editor::AppExt::set_handlesreplaces the glyphs the block handle and table row and column handles paint, which areHandles::default()grips until it is called. The block handle sits on the popover surface.Mentionrows carry an optionalicon.TextField::set_chipspaints ranges of a field's content as a glyph and title, edited as one unit;TextField::chipsreads them back.ui::input::Shownmaps between content and shown offsets.Item::indentedmoves a menu row in by levels of the app'sMenuIndent, whichui::AppExt::set_menu_indentsets (12px by default).- The terminal honours DECSCUSR cursor shape and blink.
CursorSnapshot::stylecarries aCursorStyle(CursorShape::Block,BeamorUnderline, andblinking);Emulator::set_cursor_overridepins a host style, andTerminalElement::with_cursor_onsets the blink phase. WebView::with_consolereports the page's console calls, uncaught errors and unhandled rejections asWebViewEvent::Console(ConsoleMessage).- The
inspectorfeature ofbezel-browseraddsWebView::with_inspectorandWebView::open_inspector. ui::menu::glyph_slotis public.
Changed
editor::AppExt::set_mention_sourcetakes the trigger character first; each trigger keeps its own source.Mentionhas aniconfield andCursorSnapshotastylefield; struct literals must include them.markdown::Shownis a re-export ofui::input::Shown.- The block handle's menu is built from the installed block menu items instead of a fixed list.
Fixed
- A growing text field measures its rows in its own font, so the browser gallery no longer panics resolving
.SystemUIFont. - The browser gallery paints in Geist.
- A drag ghost narrower than its item stays under the pointer.
- Menu item labels truncate to one line instead of wrapping.