The line under the Preferences fields now shows a sentence for the Smart
Guides box and for each of the 14 Smart Guides settings, from Color to
Snap to Perpendicular, when the pointer is over the row or its control
has the keyboard focus. A screen reader gets the same sentence as the
control's description. Every complete catalog has a row for each one.
Tests: the one-sentence test covers the Smart Guides category, and new
tests check the hover and keyboard-focus sentences.
The line under the Preferences fields now describes each of the 12 Guides
& Grid settings, from Snap to Grid to Pattern Editing's Tile Edge Color,
when the pointer is over the row or its control has the keyboard focus,
and a screen reader gets the same sentence. Each sentence states what
VectorCraft does with the setting. Rows are added to every complete
catalog.
Tests: the one-sentence-per-setting test now covers Guides & Grid, and
two new tests check the sentence on hover and on keyboard focus.
The line under the Preferences fields now shows a sentence for each of
the 14 Selection & Anchor Display settings when the pointer is over the
setting's row or its control has the keyboard focus, and screen readers
get the same sentence as the focused control's description. Each
sentence states what the app does with the setting: the Snap to Point
sentence says that the Smart Guides Snapping Tolerance applies while
Smart Guides is on. Every catalog has a row for each sentence.
The test that every General setting has one sentence now covers
Selection & Anchor Display too, and two more check the line on hover
and on keyboard focus in that category.
main's gate fails french_catalog_uses_nonbreaking_prose_punctuation on
the "{pos} of {total}: {name}" row of fr.tsv, added by #8017, which has a
plain space before the colon. The row now uses U+00A0 there.
Open #8053 fixes three other rows that main already has right, so it
does not clear this failure.
The line under the Preferences fields now shows a sentence for each of
the 32 General settings, Enable Contextual Task Bar included, when the
pointer is over the setting's row or its control has the keyboard
focus. Screen readers get the same sentence as the focused control's
description. Each sentence states what the app does with the setting,
and every catalog has a row for it.
A test checks that every General setting has exactly one sentence, and
two more check the line on hover and on keyboard focus in General. The
test of a row without a sentence now uses Type > Size/Leading.
The Contextual Task Bar and the Control bar check, each time they are
drawn, whether the selection holds a color that Recolor Artwork can
change. The check walked the whole subtree of each selected object even
after the first color, so with one large group selected, the check read
every paint in the group.
- Node::try_walk visits in walk's order and ends at a ControlFlow::Break.
- swatches::node_has_colors stops at the first color node_colors would
visit; node_colors now runs the same visitor without stopping, so the
two read the same nodes and paints in the same order.
- has_colors in the task bar uses node_has_colors.
The result is the same for every selection. On one group of 100,000
paths, the check takes 16 ns instead of 14.5 ms when the first path is
filled; when only the last path is filled, or none is, it costs about
what the full walk costs.