plasmacomponents3/SwitchIndicator: don't highlight non-visual focus

SwitchIndicator uses the hovered handle style when it has focus (even if not hovered). This is confusing when the Switch is used inside a FocusScope as its color is different based on having had focus in the past (or having it in the future if the FocusScope gains activeFocus). Sometimes it may make sense for elements to indicate where focus will be if it is moved, but there does not seem to be a good reason here, and we don't do it for other kinds of buttons, nor do we do it in qqc2-desktop-style SwitchIndicators.

Instead, make it conditional on having visualFocus. This is also how qqc2-desktop-style handles this.

BUG: 515243 FIXED-IN: 6.6.0

Merge request reports

Loading
Loading