Repository navigation
Tesserae 0.5.0
The YAML language redesign (#209), then the components and the windows work.
The language is specified in design/yaml-language.md; the phases land one at a time.
Changed
-
Bindings are a Python subset (phase 2).
tesserae.expris a sandboxed evaluator (anastnode whitelist, name resolution
through a scope, limits on source size, depth, nodes, steps, ranges, sequences, exponents, integers and text) that replaces the port
oftre's binding grammar. Python's arithmetic and comparison rules apply (1 == 1.0isTrue, unary minus,None,if/else,
comprehensions, f-strings, whitelisted functions and methods), and a Signal reads as its value (countandcount.get()agree).
Operators, truth tests, subscripts, formatting and built-ins touch only plain values, built-in containers, mappings, dates, decimals
and enums, so an application's own object can be read by attribute but none of its methods run from a view.tesserae.binding
keepsparse_binding,evaluate,evaluate_value,HandleandBindingErrorover it, and errors now carry the position and a hint.
See Binding Expressions. -
The node model (phase 3).
tesserae.spec.widgetsis the widget registry (Propertywith type, default, choices, required and model;
@widget,declare,register_widget,decl_from_paramsfor a view'sparams:, and a JSON schema per widget in
schema/tesserae-widget-schema.json).tesserae.spec.nodes.parse_viewreads a view in the 0.5.0 syntax (widget:, optionalname:,
properties,if,for,key,slot,state,style,classes,handlers,a11y,interaction,window_region,route,children):
every key and property is checked, every expression compiled, every node given an id from its path, and an error names the file, line and
column with a suggestion.tesserae.spec.translateturns 0.4.x YAML into it; 128 of the 131 files in the repository translate and load, and
the other three are reported (a dynamic widget name, and a property a call binds that its fragment does not declare). Nothing builds from the
new syntax yet: that is phases 4 and 5. -
Composition (phase 4).
tesserae.spec.compose.Composerturns parsed views into a live tree ofInstances: a view call is replaced by the
callee's root, its arguments are evaluated in the caller's scope and stay reactive inside the callee,Slotholds the call's children (built in
the caller's scope, with errors for a view that takes none or a slot it lacks),for:expands a node per element and a reactive one is
reconciled bykey:(kept, added, removed, reordered),if:builds and disposes as its expression changes, andstate:is a per-instance
Signalthat survives a recomposition for the same ids. Disposing a composition releases every subscription. Nothing buildstrenodes from it
yet (phase 5). -
ViewModel binding and a renderer (phase 5). A
ViewModellists the named views it serves inviews; one instance serves every view with
one of those names, wherever they are, so a pie chart and a list of the same rows follow oneSignal.app.bind(DataViewModel)makes it once,
when its first view opens;app.bind(instance)uses yours;app.bind(factory=DataViewModel)makes one per view instance; a view without a
name:is not bound.app.open_view("Main")composes a view written in the new syntax and shows it with the existing builder, keeping it in
step with its Signals (for:andif:add and remove real nodes, handlers run in the scope they were written in, amodelproperty given a
bare reference writes the user's edit back).ViewModel.views[name]is a handle (.node,.state,.show,.hide),self.show(new, old)swaps views, andapp.check()/check_viewcompare every name, action andexpects:entry of a view with its ViewModel
without a window.ViewModel(view)still works. -
Style rules (phase 6). A stylesheet may hold rules by
widget,variant,size,shape,classes,name,partandstate
(tesserae.spec.rules). The most specific rule wins (a name, then the number of properties matched, then a state, then the widget alone),
a later rule wins a tie, an app's stylesheet beats the looks a widget ships, and a node's inlinestyle:beats every rule for the fields it
sets.hovered,focusedandpressedare Signals a rule can select on and an expression can read;disabled,selected,checkedand
expandedread the widget's own property.foregroundis no longer valid on every widget: the widgets that draw text or glyphs declare it, and
the error names them.self.show(new, old)swaps one of a ViewModel's views for another. -
Migration (phase 7).
tesserae migrate-yaml [PATH] [--write] [--force](tesserae.migrate) moves a project to the new syntax: views and
fragments are translated (a fragment becomes a*_View.yaml), stylesheets become rules (a component's bypart, an app's bywidgetand
name), a view with a*_ViewModel.pyis named after it, header comments are kept, every result is checked with the app's loader and nothing
is written unless all of it loads (--forcewrites what did). Python is not rewritten: the report lists what each ViewModel needs. A view in
the old syntax still loads and says once per file how to move on. New: the guide The View Language, whose YAML
examples are tested, and the migration table in Migrating. -
The text field component (#184, the first of the components).
widget: TextFieldis
the Material text field, a view Tesserae ships with its look as rules: filled and outlined, a label that rises with focus or text, placeholder,
leading and trailing icons, prefix and suffix, supporting text, a character counter, an error state with its message, disabled, read-only,
multiline, and a password field with a button that shows the text.textis two-way;on_change,on_keyandon_submitare events. The bare
input is the new widgetTextInput(placeholder,multiline,obscured,max_length,read_only); the old builder'skind: TextFieldtakes
placeholder,multilineandobscuredin itstext:as well, andtesserae migrate-yamlwrites the old kind aswidget: TextInput.
New with it: shipped views (tesserae/views/, found after the project's, replaceable by a view of the same name),focused,focus_visible,
errorandread_onlyas states a rule can select, a widget's state read by its parts' rules, and the iconsvisibility,visibility_offand
error. -
More accessibility states (#210).
a11y:takesexpanded,selected,checked,value,
value_min,value_maxandvalue_step, in both syntaxes and intesserae.a11y; every field butroleandlivecan be bound, andnull
clears a state tre holds unset. A control still sets its ownchecked,selectedandvalue. -
Text extras (#211).
max_lines,letter_spacing(andselectableonText) are properties of
TextandLinkin the new syntax and keys oftext:in the old;max_linescuts a long text to that many lines,letter_spacingis tracking in pixels, and
aTextwith a fixedwidthand noheightis as tall as the lines it wraps to. -
Alpha on colours, and the
fullshape (#212). A colour may end in@N%to scale its alpha:primary@12%,
on_surface@38%,"#6750A4@50%", wherever a style, a rule, a boundbackground/foreground/border_coloror acolorproperty takes one.
corner_radius: fullis a pill or a circle. -
Focus control and keyboard navigation (#213).
focus('name')in a handler gives the focus to a named node in the view;on_press
is a handler for the pointer pressing a node (it does not make the node a button), so a container can focus the input inside it;focus_group: horizontal | vertical | both
gives the focusable nodes under a node one tab stop, arrow-key,Home/Endand type-ahead movement. The text field's box focuses its input when pressed. -
Transitions (#214).
style: {transition: {background: 150, scale: {duration: 300, easing: spring}}}makes a change to those
properties ease instead of jump (opacity, colours, border, corner radius, elevation, blur and the newscale,translate_x,translate_y,rotation_deg), with Material's easings, cubic
beziers or a spring; the first draw does not ease, an app that reduces motion gets the value at once, and a stylesheet rule can carry the transition. -
Canvas (#215).
widget: Canvaswithdraw:, a list of{rect: [x, y, w, h]},{circle: [cx, cy, r]}and
{path: [points], width: N}commands, each with acolor(a role, a CSS colour orrole@N%).draw:may be one{{ }}expression, so a canvas
repaints when the Signals it reads change. It is how a widget draws wavy progress, ticks and graph edges. -
Icons from a path (#216).
widget: Icontakespath:(SVG path data) andview_box:instead of a name, so any
glyph can be drawn and tinted like the built-in ones.tools/import_material_symbols.py DIRturns a folder of Material Symbols SVGs into
src/tesserae/icon_data/material_symbols.json, whichtesserae.iconsmerges under the icons built in. The 18 built-in names are unchanged; no Symbols are bundled yet (see the issue). -
Material Design Icons (#216). 147 icons from Pictogrammers' MDI (Apache-2.0) are in the icon set beside the built-in ones (names in
snake_case:account_check,
format_bold; a built-in name keeps its own drawing), each drawn in its own 24 x 24 box.tools/import_mdi.py mdi.json [--names ...|--all]adds more from the IconifymdiJSON. -
Timers (#217). Handlers can call
after(ms, action[, name]),every(ms, action[, name])andcancel(name);actionis an
action name or statements run in the handler's scope, and a name restarts a timer of that name (a debounce).tesserae.timers.Timers(window)is the same for Python.
They run on the frame loop until tre has timers (#235) and stop with the view. -
Scroll state (#218).
ScrollView.scroll_offsetis drawn (a literal or a Signal; a bound Signal follows the user's scrolling, and
setting it scrolls), andat_top,at_endandscroll_directionwrite the position to the Signals or state names they are bound to, for collapse-on-scroll and hide-on-scroll. -
Pointer capture, cursor and drag events (#219). New events
on_moveandon_release, and handler actionscapture(),
release()andcursor(name)that act on the widget whose handler is running, so a drag keeps following the pointer outside the node. -
Per-corner
corner_radius(#220).style.corner_radiustakes a list of four (top_left,top_right,bottom_right,
bottom_left) or a mapping of corners and edges ({top: 12},{left: full, top_right: 4}), with tokens or pixels; one value is unchanged. -
Windows, title bars and docks in composed views (#221). A
widget: Windowroot opened withapp.open_viewsets the OS
window (it becomes the app's window view, askind: Windowis forapp.load), and the bindings aTitleBarexpands to (inactive dimming, the maximize/restore glyph, the OS's inset and
buttons) are wired without a ViewModel. Docks already worked and are now covered by tests. -
Input masks (#222).
mask: "(###) ###-####"on aTextInputorTextFieldformats what is typed or pasted (#digit,Aletter,
*either,\\a literal);tesserae.spec.mask.Maskis the same for Python. -
Clipboard actions (#223). Handlers can call
copy(text)(true if it reached the OS clipboard) andpaste()(the text on it, or''). -
open_url(#224). Handlers can callopen_url(url)to open a link in the OS's browser or mail program; onlyhttp,https,
mailtoandtellinks are opened.tesserae.urls.open_urlis the same for Python. -
Divider (#152).
widget: Dividerwithvariant: full | inset | middle,orientation: horizontal | verticalandthickness,
a shipped view with a shipped look (a line inoutline_variant, hidden from a screen reader). The 0.4.xcomponent: Dividerfragment still works. -
Image (#196).
widget: Imagetakesalt(a screen reader's description; without it the picture is decorative and hidden from one,
unless it handles clicks) and checksfit; its shape isstyle.corner_radius, per corner too, which the engine clips the picture to. Asrcthat follows a Signal now changes the picture
shown (a changed picture was missed by the reconcile). -
Svg (#197).
widget: SvgtakesaltasImagedoes, and needs one ofsrcandcontent(a load error otherwise);currentColoris the
foreground, so a monochrome icon follows the theme. -
Elevation that moves (#226). No new language:
elevationinhoveredandpressedrules withtransition: {elevation: ms}eases the
shadows (also from a level a view computes, for a drag). Documented in Gradients & Effects and tested. -
Overlay (#227).
widget: Overlaywithopen(two-way),anchor,placement,modalanddismissibleshows its children in a
layer over the window: anchored with flipping, or a modal scrim; Escape or a press outside closes it and writesopenback; focus returns. -
VirtualList (#228).
widget: VirtualListwithitem_heightandoverscanand a singlefor:child builds only the rows in view and
builds more as it scrolls (a list of 10 000 opens with about a dozen rows). It has a ScrollView'sscroll_offset,at_top,at_endandscroll_direction. -
Window size classes (#230).
app.window_width,app.window_height,app.width_class(compacttoextra_large) andapp.height_classfollow the
window's size and can be read in any expression.appitself is now readable in views whose ViewModel is the new kind (it had only worked for a 0.4.x ViewModel). -
Screen transitions (#231).
app.transition(orApp(transition=...)) isnone,fade_through,shared_axis_x,shared_axis_y,
shared_axis_zorcontainer_transform, played bynavigate,backandforward(reversed going back);app.navigate_with(name, transition=..., origin=node)picks one for a single navigation. -
Text (#195).
widget: Texttakesheading: 1to6(a heading of that level for a screen reader). Type roles have atracking
field:tokens.MD3_TRACKINGis Material 3's per role, off unless a theme'stypography:sets it (tokens.MD3_TRACKING_TYPOGRAPHYfor all). Every role's size and line height is tested against the MD3 scale. -
Splitter (#203).
widget: Splitterwith two child panes,orientation, a two-wayposition,min_first,min_secondandcollapsible: a handle you drag
(the pointer is captured), move with the arrow keys, Home and End, a screen reader can set, and double click to collapse. -
Image masks (#236). A picture's rounded, circular and pill shapes are
style.corner_radius(also from a rule); no new code was needed, and they are tested. -
The accessibility vocabulary (#237).
a11y:takespressed,invalid,description,describedby,controls,current,value_now,value_text
andbusy, checked and bindable; the engine has no property for them yet (requested: tre#160), so they are sent one at a time as far as it takes them, with one warning naming each it lacks. -
tooltip:on every node (#238). Text, or{text, title, delay}for a rich one: shown after a hover delay (500 ms) or at once on keyboard
focus, gone on leave, press, blur or Escape; the text is the node's accessibilitydescriptionwhere it has none. -
transition:for layout (#239).width,height,x,y,gap,paddingandmarginease like the rest. tre cannot animate them yet
(requested: tre#161), so they are set frame by frame along the curve; when tre can, its own animation is used without a change. -
Badge (#141, #142).
widget: Badge: a dot, or a pill with avaluecapped atlimit(999+),show, andanchored: trueto
sit over the top right corner of its host (the children). One view replacesBadgeDotandBadgeLabeled, which still work. -
Link (#174).
widget: Linkis primary text inbody_mediumby default withhref(opened byopen_url, so only web and mail links), a two-way
visited(andstate: visitedin rules),disabled, andunderline(hoverby default: under the pointer or the keyboard focus,always,never). -
Progress indicators (#143, #144, #145).
LinearProgressandCircularProgresswith novalue(or an expression
that gives nothing) are a wait with no end (the builder had always made them a bar at 0); newtrack, linearbufferandstop_indicator, andlabel; a screen reader hears busy, or the value as a percentage. -
Checkbox, RadioButton, Switch (#175, #176, #177).
label(beside the control, part of what you
press),error(checkbox and radio), a Checkbox that is neither on nor off (checked: null), Switchicons, and the colour isstyle.foreground. A patch no longer reset a control's own
accessibility states (checked,value) to nothing. -
Slider (#178).
min,maxandstep(the builder ignored them),ticks,value_indicator,label, andon_inputfor every step of a drag;
a boundvaluenow follows the drag instead of waiting for its end. A bound value is written before the node's handlers run, so a handler reads what the user just did. -
SegmentedButton (#193).
widget: SegmentedButtonwithoptions, a two-wayselectedandmultiple, written in the view language (the first shipped
component that is built from the language's own parts: per-corner pill,focus_group, icons, handlers that set a Signal). Ana11y: rolemay be worked out from a param (never from a Signal), and a roving focus group starts on its checked item. -
Tabs (#166, #167).
widget: Tabswithtabs, a two-wayselected,variant(primary, secondary) andtab_width: a shipped view with icons, badges,
an indicator that slides, and arrows/Home/End that move and choose. A bar that scrolls waits for the engine to scroll sideways. -
Several windows (#105).
app.open_window(view, modal=, parent=)opens a view in a window of its own (tre 0.5.6 opens windows while the app runs), withapp.windows,app.window_of,app.close_window, and the handleropen_window(view[, modal]). Window handlers act on their own window; a modal window dims and blocks its parent; closing the main window closes them all. -
Animated gradient focus borders (step 81).
App(focus_ring="gradient")turns the keyboard focus ring into a sweep gradient through the theme's secondary, primary and tertiary, one turn in three seconds (tesserae.focusring). Still when motion is reduced. ATextField's focused border is a style rule and stays solid. -
Frosted navigation, search and menus (step 72).
frosted: trueonNavigationRail,NavigationDrawer,NavigationDrawerModal,Menu,SearchBar,SearchViewandTopAppBarmakes the surface 72% of its colour with a 20 pixelbackdrop_blur, so what is behind shows through softly. Off by default (Material 3 has solid surfaces). -
Icon toggles that morph (step 55).
transition: {icon: ms}on anIconeases a changed glyph into the next (tre morphs a path'sdata);IconButtonuses it forselected_icon. Glyphs from different sets switch at once. -
Ripple as a shader (step 48).
App(ripple="shader")draws the press ripple with one anti-aliased fill shader per node (three presses at once, Material Web's timing) instead of a circle node per press (tesserae.ripple). The default staysnodes. -
Routed views: nested routes, guards and lazy screens. A routed call inside a routed view is a nested screen under its parent's path;
route:may be a mapping withpath,guard,redirectandlazy;app.guard(screen, check)is the same from Python. A lazy screen's view is built when first reached. -
Window:
remember.remember: true(or a name) keeps the window's size, place and maximized state in the user's config directory and puts them back next run (tesserae.windowstate;TESSERAE_STATE_DIRmoves it). Position is saved only where the platform reports one. -
Toolbar:
fit. Items that do not fit the width move into the overflow menu. It needed a way to know a size, so aContainergainsmeasured_widthandmeasured_height: outputs, written after layout and when the window resizes, bound like a scroll view'sat_top. -
SplitButton: the keyboard. Arrow-down on either part opens the menu and moves the focus to its first row.
Overlaygainsfocus_first(andMenupasses it on) for any layer that should take the focus when it opens. -
Routed views (#208). A view call with a
route:is a screen in a window view written in the current language (it was only wired for the old syntax);app.paramsgives the screen the params it was reached with (a route likenotes/{id:int}, back and forward restoring them), and the handlersnavigate_to(screen, params)andnavigate_route(path)go there. -
Dialog: the full-screen form.
fullscreen: trueonDialogfills the window onsurfacewith a close button, the headline and the actions along the top and the content scrolling under them; it followsapp.width_classwhen written so. -
Window (#204).
kind: Windowandwidget: Windowtakefullscreen,maximized,transparent,blur_behindandclick_through, applied when the view loads and only when written (the size classes were #230). -
Video (#198). An
Imagenow shows itsframein a view (it was refused as "not drawn yet"), andwidget: VideoPlayerputs a play/pause button, the time, a seek slider, a mute button, a buffering ring and a caption band under it. The app decodes and supplies frames; the player owns none of the playing. -
Toolbar (#172, #173).
widget: Toolbar: docked (64 tall, full width) or floating (a pill with a shadow, a row or a column), standard or vibrant, withIconButtonitems, an overflowMenu, an end action button, your own content in a slot, andhiddento fade it out of the tab order.IconButtongainstint, a colour role for a standard button's icon. -
SplitButton (#124 to #128).
widget: SplitButton: a main action and a menu button joined, in all five Button types and sizes, with aMenuunder the trailing part whose chevron turns over while it is open. -
NodeGraph (#202).
snap(to a grid),arrows,fit(show every node), choosing a node, and a fit-to-view method. -
DatePicker (#186, #187, #188, #189).
DatePicker(the modal dialog: a month grid, a typed date, Cancel and OK) andDatePickerDay(one day, in all its states). The expression language gainsdate_add_days,date_weekday,days_in_month,format_dateandcurrent_date. -
TopAppBar (#165).
TopAppBarin four sizes (small, centre, medium, large) with a navigation icon, up to three labelled actions, a collapse to the small form and the on-scroll colour. -
TextField, what was left (#244). The label glides, a filled field has 4 pixel top corners and a square bottom, the input is described by the help line, and
suggestionsoffers autocomplete in aMenuunder the field. -
Dock (#206, #207). A
DockPanelcan beclosable(a close button on its tab) and aDocktakes a two-wayclosedlist of the names of the shut panels: closing adds a name, removing one opens the panel again. -
Tree (#157, #158).
Tree(branches that open to show their children, from nested data, withexpandedandselectedtwo-way and the tree keyboard),TreeNode(a branch or a leaf row) andTreeLevel. -
Carousel (#199).
Carousel(uncontained, multi-browse, hero and centre hero rows of rounded items that scroll sideways and settle on one). AScrollViewtakessnapand any node asnap_alignstyle (tre 0.5.6's scroll snap). -
Accordion (#156).
Accordion(a header button with a chevron that turns, and content while it is open) andAccordionGroup(single or multiple open, dividers, arrows between headers). -
Search (#170, #171).
SearchBar(a pill with a leading icon or menu button, a clear button, a trailing icon, an avatar, a two-wayqueryandactive) andSearchView(the docked panel of rows under it, with an empty state and the result count announced). -
NavigationDrawer (#163, #164).
NavigationDrawer(standard, collapses by easing its width),NavigationDrawerModal,NavigationDrawerScreens(the app's screens) andNavigationDrawerItem, with sections, dividers, badges, header and footer slots and a list that scrolls. -
Menu (#168, #169).
Menu(an anchoredOverlayof rows with icons, shortcuts, checks, dividers, headings and submenus) andMenuItem. AnOverlay'sanchoris looked up in the view that called it when it is not found in its own (a menu names its button in the calling view), andanchor: parentsits against the node the overlay is written inside. -
TimePicker (#190, #191, #192, #194).
TimePicker(the dialog),TimeInput(typed hour and minute),PeriodSelector(AM / PM, one view for both states), and the dial gains a two-waymode. A view'sstate:may be seeded from the view's params; aTextFieldtakes anon_edithandler; reconcile now notices a changed SpinBox option or dial mode. -
SpinBox (#185). Holding a button repeats the step, Page Up and Page Down step ten at a time,
wrapgoes round the ends,decimals,prefixandsuffixformat the number, andSpinBoxFieldadds a visible label and supporting or error text. -
Snackbar (#146).
Snackbar(a message near the bottom that goes by itself, with an action and a close) andSnackbarHost(several, one after another). AnOverlaytakes atimeout(it closes itself, held off while the pointer is over it) and anon_dismisshandler. -
SideSheet (#154, #155).
SideSheet(standard, inline, its width eases),SideSheetModal(over a scrim, from either side) and the sharedSideSheetPanel: a title, a back and a close button, scrolling content and actions. -
Chip (#179 to #183).
widget: Chip(assist, filter, input, suggestion; icon, avatar, elevated, a close button) andwidget: ChipGroup(none,single,multipleandinputmodes, wrapping, arrows). A view can take ahandlerparameter: the caller's action or statements, which the view runs by calling the parameter by name (on_remove()). -
Pagination (#200).
widget: Paginationwith a two-waypage,pages,compactanddots: the numbers with an ellipsis, the current page filled, previous and next disabled at the ends. -
Title bar (#205). The window buttons show a tooltip (Minimize, Maximize, Close); a
widget: Tabs,TextFieldorIconButtonin the bar's children works. A node's spec may carry atooltip, which the composed view shows. -
Card (#148, #149, #150).
widget: Cardwithvariant(elevated, filled, outlined),headline,subhead,text,media, anactionsslot,actionableandselected.interaction:may now be an expression worked out from the view's params when the view is composed (never from a Signal). -
NavigationRail (#159, #160, #161, #162).
NavigationRailwithitems,selected,expanded,alignmentandheader/footerslots;NavigationRailItemwith a badge;NavigationRailScreensandNavigationRailScreenfor the app's screens (app.current_screen,navigate_to). A focus group starts on the item that is current. -
ListItem (#153).
widget: ListItemwith a headline, supporting text and overline (56, 72 or 88 pixels), a leading icon, avatar or picture, trailing text or icon,leadingandtrailingslots,selectable/selected,disabledand adivider. -
StatusBar (#201).
widget: StatusBarwithitemsat the start, centre and end (text, icon, tooltip, pressable ones that setclicked), aprogressorbusyedge, announced politely. -
Fab (#133 to #140).
widget: Fabwithicon,label(the extended form),variant(primary, secondary, tertiary, surface),size(small, medium, large),collapsedanddisabled; it rests at elevation 3, lifts to 4 on hover and settles on press. -
Model parameters of a view may be written by the view even when the call gave an expression: the view holds its own copy, which follows the expression whenever it changes.
Buttongainsflip(off, a toggle leaves flipping to the caller). -
IconButton (#129, #130, #131, #132).
widget: IconButtonwithvariant(standard, filled, tonal, outlined), five sizes, three widths,shape,toggle/selectedwith aselected_icon,disabled; itslabelis its accessible name and tooltip. A handler a call gives for an event the called view's root handles itself now runs after the view's own (a toggle flips, then youron_clickruns). -
ButtonGroup (#123).
widget: ButtonGroupwithitems,mode(none, single, multiple),selected,chosen,variant,size,connectedandorientation. A model parameter nobody binds now holds its own value (a view's handlers may write it), a style given as an expression that works out to nothing leaves the field to the stylesheet, and a focus group starts on the item that is pressed. -
Dialog (#151).
widget: Dialogwithopen,headline,text,icon,actions, a two-wayresult,dismissibleand your own content as children; a shipped view on a modalOverlay. AScrollViewwith amax_height(ormax_width) and no size of its own is now as long as its content up to that limit. -
Tooltip (#147). A rich
tooltip:takesplacementand up to twoactions; it stays while the pointer moves onto it, closes when an action is pressed, and a long press shows it. -
Button (#118, #119, #120, #121, #122).
widget: Buttonwithvariant(filled, tonal, elevated, outlined, text), five sizes,shape, icons,toggle/selected,loadinganddisabled; as wide as its label; lifts on hover; a pressed pill squares off. A shipped view with a stylesheet.ContainerandRecttakedisabled. -
ScrollView
orientation: horizontal. A strip that scrolls sideways: children in a row, the offset along x,scroll_directionrightorleft,at_top/at_endfor the start and end of the strip. -
Requires tre 0.5.6. Timers run on the window's own
afterandevery; layouttransition:is the engine's own animation (a change to or fromautoor a percentage is made at once); the accessibility states (pressed,invalid,description,current,busy,value_text, relations) are set on the node, and aDivideris aseparator. The hand-stepped layout transitions and the dropped-state tolerance are gone. Scroll snap points are asked of tre (mindderivative/tess-re#166); ascroll_viewwithorientation="horizontal"already scrolls sideways.
Removed
tests/test_binding_parity.pyand its recording: they assertedtre's quirks (1 == 1.0false, 64-bit wraparound, no unary minus).
Added
tests/test_expr.py: the grammar table row by row, every limit, an escape corpus of about 190 inputs run as expressions and as
handlers, grammar-based and mutation fuzzers, and a manual mutation check of the sandbox rules (each rule switched off fails a test).