fix(menu): path highlight corners flipped

This commit is contained in:
Ashley Wulber 2026-07-29 12:09:27 -04:00 • committed by Ashley Wulber
parent d71c25879e
commit abaa06f10f

View file

@ -703,7 +703,7 @@ impl<'b, Message: Clone + 'static> Menu<'b, Message> {
} }
_ => {} _ => {}
}; }
None None
} }
@ -811,11 +811,11 @@ impl<'b, Message: Clone + 'static> Menu<'b, Message> {
let rad_0 = theme.cosmic().radius_0(); let rad_0 = theme.cosmic().radius_0();
if start_index != end_index { if start_index != end_index {
if 0 == i { if 0 == i {
rad[0] = rad_0[0]; rad[2] = rad_0[0];
rad[1] = rad_0[1]; rad[3] = rad_0[1];
} else if i == end_index - start_index { } else if i == end_index - start_index {
rad[2] = rad_0[2]; rad[0] = rad_0[2];
rad[3] = rad_0[3]; rad[1] = rad_0[3];
} else { } else {
rad = rad_0; rad = rad_0;
} }