On the Recent tab the heading read "Blank Document Presets (n)", the
same as the preset categories, and Saved was the last tab, after every
category. Before the move to the shared dialog, Recent had its own
heading and Saved came right after it.
The dialog now turns on the shared dialog's recent_items and
saved_after_recent options: Recent reads "Your Recent Items (n)" over
four cards to a row, and the tabs read Recent, Saved, then the
categories.
* Retype: add a context menu to matching-font rows
A secondary click, or Shift+F10 on the focused row, selects a font row in
the Retype panel without setting its font and opens a menu with Apply Font
(what a click on the row does; off without live text selected), the panel
menu's sample sizes and Reset Retype Panel. The menu closes when the list
or the document changes (G12).
* Rerun CI: the apt package download failed in a test shard's setup
---------
Co-authored-by: ruchirguitar <[email protected]>
Co-authored-by: FredApps <[email protected]>
* Docs: add a script for editable numbered grids
* Docs: bound the numbered-grid example and validate label numbers
---------
Co-authored-by: FredApps <[email protected]>
With two direction handles picked, a Cmd/Ctrl+Shift press on one of them
drags that handle alone with its opposite handle mirrored and its angle
constrained. Shift kept the press from counting as a press on one of
several picked handles, so the press did not record the picks, and its
release after a drag, or Escape during it, left only the pressed handle.
The press now records the picks for any mirroring press on one of several
picked handles, with or without Shift. Shift still keeps a drag from
moving every picked handle, and a Shift-click still adds or removes the
pressed handle.
A Cmd/Ctrl press on one of several picked direction handles drags that
handle alone so its opposite handle mirrors. The press cleared the picked
handles, and neither the release nor Escape restored them, so after the
drag only the pressed handle could be picked again.
The press now records that it is such a mirroring press. Its release
after a drag, and Escape during the drag, restore the handles that were
picked when the press began. A drag without Cmd/Ctrl still moves every
picked handle, and a click still picks the pressed handle alone.
The check did not read lint attributes inside cfg_attr at all, and it
does not evaluate cfg conditions. Two roots passed although the
condition all() is always true:
- #![cfg_attr(all(), forbid(unsafe_code))] with doc-test deny: the
library forbids unsafe code, so its doc tests need forbid.
- #![doc(test(attr(deny(unsafe_code), cfg_attr(all(), allow(unsafe_code)))))]:
the allow lowers the deny.
A cfg_attr now counts only in the direction that is never too lenient:
a forbid inside one asks the doc tests for forbid, and an allow, warn
or expect inside one lowers the doc tests' level. A deny or forbid
inside cfg_attr in the doc-test list still does not count.
The comment and literal scanner also skips raw C strings (cr"..."), so
text such as #![forbid(unsafe_code)] inside one is not read as an
attribute. Tests cover each case.
dock::tests::idle_frames_replay_the_color_panel failed now and then with
"idle frames replay the Color panel" (left: 1, right: 0). The app starts
the scan of the installed fonts on a background thread, and frames do
not wait for it. When the scan ends, the fonts' generation changes, and
a panel body's inputs hold that generation through layout_inputs. On a
loaded machine the scan can end after the helper's two settle frames,
so the first idle frame runs the body once.
The panel() helper now calls FontDb::global().family_list() after
making the app, which waits for that scan (or runs it), as the font
menu, properties and native menu tests already do. Every test in the
module goes through panel(), so all of them get the fix.
The check accepted a library root when deny(unsafe_code) or
forbid(unsafe_code) appeared anywhere inside #![doc(test(...))]. Two
roots passed although their doc tests still allow unsafe code:
- #![doc(test(attr(cfg_attr(any(), forbid(unsafe_code)))))]: the lint
sits inside a cfg_attr whose condition is false, so rustdoc adds no
lint to the doc tests.
- #![doc(test(attr(deny(unsafe_code), allow(unsafe_code))))]: rustdoc
adds both attributes in order, and the later allow overrides the deny.
The check now reads only the lint attributes that are direct members of
attr(...), in order, and keeps the last level for unsafe_code. A later
allow, warn or expect lowers deny, and nothing lowers forbid. Tests
cover each case.
With two or more direction handles picked, a press without Shift on one
of them started a drag of all the picked handles (path.moveHandles),
which never mirrors. A Cmd/Ctrl press that Direct Selection now keeps on
a shown handle therefore translated every picked handle instead of
mirroring the opposite one.
press_handle now drags the pressed handle alone when the press mirrors
(Cmd/Ctrl without Alt, and not the press that lent the tool from another
tool), so the drag mirrors its opposite handle and the other picked
handles stay where they are. A drag without Cmd/Ctrl still moves every
picked handle.
With Auto-Collapse Iconic Panels on, the Gradient panel's stop chip in an
icon column's flyout opened the stop popover, and the flyout closed in the
same frames. The popover is a layer of the window's dialog host, outside the
flyout's layers, so the focus moving into it and presses in it counted as
leaving the flyout.
The dock now notes the dialogs that open while a flyout is open. While one
of them is still open, the flyout is shown without auto-collapse; once they
close, a click away from the flyout closes it again.
review_596866_owned_up_then_new_down_in_one_frame_keeps_the_next_click_single
checked the release and press edges in the step's last frame. The press's
Down comes in a second pass of the same frame only when another part of the
UI asks for a rerun; otherwise it comes in the next frame, whose first pass
has no events. Keying the Image Trace sliders on the selection moves the
status bar's rerun to an earlier step, so the Down came in a second frame
and the precondition failed while every behavior assertion still held.
The edges are now read with frame_event, which looks at the first pass of
each frame in the step.
The check read every #![...] attribute in a library root, including
ones inside a module's braces. A root with
mod tests { #![doc(test(attr(deny(unsafe_code))))] } and no crate-level
attribute passed, although an attribute inside a module does not apply
to the crate's other doc tests. A #![forbid(unsafe_code)] inside a
module was also read as the library forbidding unsafe code.
Attributes inside braces are now skipped, with a test for each case.
inert() passed the whole operand before a call to without_turbofish, so an
assertion with many Box::new elements copied every earlier element again at
each call. It now tracks where the current path starts and normalizes only
that path. A test covers a builder path that follows other elements.
CI's test-lint step failed with only-weak at xtask/src/doc_tests.rs:250:
every assertion in comments_other_lints_and_allow_do_not_count checked
only that problem() returned Some. Such a test still passes when the
check reports the wrong problem, for example when a commented-out
#![forbid(unsafe_code)] is counted and the forbid message is returned
instead of the deny message.
The tests now compare problem() with the exact message for each case,
and two cases cover a commented-out forbid on either side. The other
tests in the file that checked only is_some, is_none or a substring
compare the full result too.