Stroke / Fille indicator sometimes in not in sync occasionally
On Illustrator 30.5.1 (Windows 11), the fill/stroke indicator in the toolbox occasionally renders out of sync with the internal active-paint state. The indicator shows stroke brought to the front, but clicking a swatch edits the fill instead of the stroke. Pressing X two or three times forces the indicator to repaint, and afterwards the behavior is correct again.
Steps to reproduce:
1. Press X so that stroke becomes the active paint. The indicator shows stroke in front, as expected.
2. Switch tools, use the Eyedropper, create a new object, or press D.
3. Click a swatch (or pick a color in the Color panel).
4. The fill changes, not the stroke, although the indicator still shows stroke in front.
5. Press X repeatedly; the indicator redraws and the mismatch disappears.
This looks like a repaint/refresh issue on the indicator rather than a logic error in the flag itself: the visual state lags behind the actual state, and a forced redraw reconciles them. Two things would help here:
a. Repaint the fill/stroke indicator synchronously whenever the active-paint state changes, so the indicator can never display a stale state.
b. Treat the active-paint state as a single source of truth consumed by the toolbox, Swatches, Color and Gradient panels, so that panels cannot disagree with the indicator.
-
@taozhanggui — I know this happens when Ai is launched first, all the time, since recently, and this is a reported bug. But as far as I know, once the stroke is properly focused, it never comes back within the same session. Can you confirm this?