Keep the brush guide round and show the feather in it.

The local brush cursor took its height from the canvas aspect and its width
from the frame window, so a cropped or zoomed photo drew an oval cursor
over a round mask, and the stroke preview was scaled the same wrong way.
Both now convert the brush radius through the visible frame on each axis,
which matches the baked mask at any crop or zoom.

The feather band was also invisible in the guide: the preview painted one
flat band and the cursor was a single ring. Painted strokes now show the
soft band under the solid core, and the cursor adds an inner ring at
1 - feather of the radius.

Masks shrink their width instead of clamping their height, so tall or wide
frames keep square mask pixels and round dabs.
This commit is contained in:
2026-11-28 17:09:02 +00:00
parent 69a327cd45
commit c05dbce580
4 changed files with 106 additions and 23 deletions
+15
View File
@@ -4661,6 +4661,15 @@ figcaption {
stroke: rgba(255, 92, 92, 0.4);
}
/* The soft band of the feather, drawn under the solid core. */
.local-brush.band {
stroke: rgba(240, 170, 80, 0.14);
}
.local-brush.band.erase {
stroke: rgba(255, 92, 92, 0.13);
}
.local-outline,
.local-line {
fill: none;
@@ -4686,6 +4695,12 @@ figcaption {
stroke-dasharray: 3 3;
}
/* Marks where the feather band starts, mirroring the baked mask. */
.local-cursor.inner {
stroke: rgba(240, 174, 85, 0.5);
stroke-dasharray: 2 4;
}
.local-list {
display: flex;
flex-direction: column;