Linux: VectorCraft draws its own title bar on every desktop unless System Title Bar is on

On KDE Plasma, Sway, Hyprland, COSMIC and X11 window managers the window
kept the desktop's frame, and the app bar with its brand mark sat below
it. Where the desktop draws a title bar, as KDE Plasma does, the window
showed two. When the desktop's bar was hidden through the window
manager, the app bar left behind did not move the window and had no
caption buttons.

On Linux and the BSDs VectorCraft now draws its own title bar on every
desktop unless Preferences › User Interface › System Title Bar is on, as
PhotoCraft does. The craft-window probe no longer picks the frame.
VECTORCRAFT_TITLEBAR decides for the run it is set in: app draws
VectorCraft's bar and system or desktop keeps the desktop's frame, also
when the preference says otherwise. Before, System Title Bar on gave
the desktop's frame even with app. macOS and Windows are unchanged.

When the variable keeps the desktop's frame, the app bar leaves out the
brand mark, as it does with System Title Bar. While the variable is
set, Preferences dims System Title Bar and says that the variable
chooses the title bar; the dialog's __titlebarFromEnv field is true.
The note has a row in the 24 catalogs.

Docs: docs/control-protocol.md, docs/development.md,
docs/target-app-parity.md.
This commit is contained in:
dotCooCoo
2026-10-26 10:03:31 -07:00
parent e2a8280134
commit 90788b632a
31 changed files with 178 additions and 79 deletions
+5 -1
View File
@@ -310,7 +310,11 @@ not commands, so drive them with `ui.click` if needed. Close runs `app.quit` (th
modified documents), and empty bar space and the 5 pt window edges move and resize the window. Preferences › User
Interface › System Title Bar (`systemTitleBar`, read when the app starts) gives the window its OS decorations back
instead: the OS title then shows the active document (`*name — VectorCraft` with unsaved changes) and the app bar
drops its brand mark. On macOS the window buttons are centred on the app bar; the web build is unchanged.
drops its brand mark. On Linux and the BSDs the environment variable `VECTORCRAFT_TITLEBAR` chooses the frame for one
run, whatever the preference says: `app` keeps the app bar as the title bar, and `system` or `desktop` gives the
window the desktop's decorations. While it is set, the Preferences dialog dims System Title Bar and its
`__titlebarFromEnv` field is `true`. On macOS the window buttons are centred on the app bar; the web build is
unchanged.
Fill/Stroke chips and panel shortcuts: the Control bar's and Properties' Fill and Stroke chips bring their proxy
forward (`paint.toggleActive {fill}`) and open a popover with the Swatches panel (Shift-click: the Color panel's mixer);