An inactive document tab shows the document's name, the view number and
the unsaved-changes mark, without the zoom and the mode in parentheses
(the color mode and view, or the opacity mask being edited). The active
tab keeps its whole title, and an inactive tab's tooltip shows the whole
title. In a 1000 pt window with twelve short-named documents, 7 tabs fit
whole instead of 3.
Tests that found tabs by the " @ " of their titles now find them by the
document's name, and the overflow tests use longer names so that a tab
still overflows. Tests that drag back to a tab read its place again
after another tab becomes current, since the current tab is wider, and
one of them checks that the pointer stays over the tab it switched to.
The drag along the strip in the tear-off test stays short of the next
tab's middle, and the reorder test checks that a long drag along the
strip floats no document.
When the active tab was one of the last documents, the strip showed the
tabs from it to the end and left the room before them empty. The tab
before them now fills that room with its title shortened, as the tab
after the whole ones does. The tab strip takes each tab's window and
title from one list, so a docked window without a document no longer
shifts which tab is drawn as the active one. The tests check that 3
tabs fit whole and a fourth is shortened in a window 1000 pt wide.
When the open documents' tabs don't all fit, the strip stopped at the
last tab that fit whole and left the room before the » button empty,
even where it could hold most of the next tab. That tab now fills the
room with its title shortened and ending in "…", as long as at least
40 pt of the title fits, and its tooltip shows the whole title, wrapped
to fit inside the window. An active tab wider than the whole strip is
shortened the same way, so its × no longer runs under the » button.
Clicking between app windows (floating panels and the canvas) passes through one frame where none of them has focus. The palette levels counted the app inactive on that frame and lowered every floating panel's OS window. The panels flickered, could end up disappearing behind the main window until the next repaint, and a click on one panel's bar could hand the keyboard to another.
The app now counts as inactive once none of its windows has had focus for 0.25 s, counted from the first frame that saw none. craft-ui's docking waits as long.
Fixes#6986
Conflicts in docs only (status lines, changelog rows and table rows):
main's entries and this branch's are both kept, each once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>