The framework finds the monitor a palette window is on by testing the
window's top-left corner, in the window's own points, at each listed
monitor's scale. With a scale-1 primary listed before a scale-2
secondary, a palette on the secondary matched the primary, and its
popups were kept in the primary's work area, away from their opener.
The desktop window system now lists monitors only when they all share
one scale. On a desktop with mixed scales, popups stay within the span
of the app's windows and dialogs reopen where they were saved, as
before this branch.
The desktop app passed the framework a window system that lists no
monitors, so a dialog such as Preferences reopened at its saved desktop
position without being fitted to any display, and palette popups had no
monitor to stay inside.
The app's window system now lists the monitors through winit, with each
monitor's work area on Windows (GetMonitorInfo), so a saved dialog that
no connected monitor shows comes back onto one with its title bar
reachable, and popups stay above the taskbar. A listing is reused for one
second and kept when winit stops on a display that went away while it
was listed. macOS lists no monitors, as before: winit gives each
display's position in that display's own scale, so displays with
different scales overlap. The main window's restore uses the same
listing.
Fixes#10230
Co-authored-by: FredApps <[email protected]>
The CMYK fields of a script's picker now convert through the CMYK profile
of the script's document whenever one is given, not only in a CMYK
document, matching the gamut warning. An RGB color opens through the
active RGB profile, which the picker's RGB fields read its channel values
in, so the opening swatch and the fields agree. docs/mcp.md names the
profiles the picker uses.
File > Open refuses an RTF file that ends inside a group as damaged
instead of opening the text read before the end; File > Place still
places that text. Binary data and bytes after the document's closing
brace are skipped, as the reader skips them.
Text Import Options for a file File > Open asks about now waits while
any dialog is open, as Missing Fonts does, so the two never show at
once.
The File > Open filter test uses the extensions and formats this build
reads, so it holds where no DWG decoder is built in.
When a late files read finds no copied files and the Copy made here was
a bitmap, Paste read the bitmap to compare it with the Copy before it
read the text. A bitmap read that gets no answer leaves the clipboard
worker busy, so the text read then failed at once and Paste took the
internal Copy instead of the text another app put there. The text is
now read first and kept for the paste.
docs/mcp.md's Width profiles section says which commands the footer's
Add to Profiles, Delete Profile and Reset Profiles run, and the
progress doc gets a line for the footer with its tests.
The ProfileSelect doc comment named another vendor's app; it now says
what the drop-down holds. The closed and open widths, the Page Up/Down
step and the saved-row thumbnail size are documented consts, and the
thumbnail's size and inset are no longer literals at their call sites.
The framework's Select, which the Profile control used before, reports
the picked row's place in the list as a numeric value and takes
AccessKit's SetValue, Increment and Decrement. The new drop-down set
only a text value and never read take_set_value, so a screen reader
could no longer step or set the profile. ProfileSelect::access now sets
access.numeric with the row's place and label, and update takes
SetValue and the step moves before its focus check, as Select does.
The Gujarati status notes now give the catalog's real counts: 4,946 `@msg`
rows and 10,890 rows in all, and the revision rows give 4,926 new message
rows. They also say that a web build offers Gujarati only when it is built
with `CRAFT_FONTS_DIR` pointing at a craft-fonts checkout that has Noto Sans
Gujarati; without it `offered_codes` leaves `gu` out on the web.
docs/development.md no longer says a missing translation never fails a test.
It names the four tests that need a row in every complete catalog or every
`COMPLETE_MESSAGES` language.
app.showColorPicker opened the picker with the front document's color
profiles: the opening color, the CMYK fields and the out-of-gamut test
used the active context, while OK converted the pick through the
script's document. With two documents assigned different profiles, the
picker showed and separated colors in the wrong space.
The script picker now draws its opening color, fills its CMYK fields
and tests the gamut through the profiles of the script's document.
Pickers opened from the panels keep using the active profiles.
The clip-outline check behind `pathItems.removeAll()` measured each
subpath by its signed area. The loops of a figure eight turn opposite
ways and cancel, so the check treated the outline as enclosing nothing,
although both fill rules fill it. A subpath whose signed area is within
roundoff of zero is now measured by the area it fills under nonzero.
A subpath whose points all lie on one line still encloses nothing.
The Concept to Vector panel labels its slider and field with tl!("Detail"),
and gu.tsv had a row only for "Detail:", so the label stayed in English
in the Gujarati interface.
When a late text read answers and the Copy made here was a bitmap, Paste
read the bitmap to compare before it read copied files. A bitmap read that
got no answer left the worker busy, so the files' read failed at once and
an art-file list on the clipboard was not pasted. Paste now reads copied
files first whenever the ownership check needs a read of its own, since a
Copy made here writes no files.
The doc comment on Ours now states that a bitmap is known by its size, as
Clipboard::owns already compares it, and the test covers a same-size bitmap
from another app.
The footer's Add to Profiles saved the profile at once as "Width Profile
N". It now opens the same name dialog as the Stroke panel's menu item
Add to Profiles…, as on main, and saves nothing until OK.
stroke.widthProfile.move, Prefs::width_profile_order, the drag and Move
Up/Move Down reordering, stroke.widthProfile.rename and the row menu's
Rename item are taken out, along with their tests, so this change holds
the drop-down footer alone. Reordering and renaming go to their own pull
requests. Dragging a row onto the footer's trash button goes with the
row drag. The engine's width profile commands are now the same as on
main.
A saved row's right-click menu keeps Delete Profile; built-in rows have
no menu.
Delete Profile removes saved profiles only, as on main: the engine
refuses a built-in name again, Reset Profiles clears the saved ones, and
the hidden_width_profiles preference is gone. Hiding a built-in also
made stroke.set {profile: "lens"} fail with "unknown profile lens".
The command's enable check goes back to has_saved_profiles. The check
added here passed whenever a built-in other than Uniform was listed, so
a key press ran Delete Profile with nothing to delete and
shortcut_editor::tests::listed_commands_run_from_a_key_without_a_missing_param
failed.
In the drop-down, the footer's Delete Profile, the row menu's Delete
Profile and the trash drop target act on saved profiles only.
rasterize_as took eight arguments and carried an allow for Clippy's
too_many_arguments lint. The region and the pixel size it fills now go
in as one pair, so the function stays within the limit without the
allow.