cleanup: corner radius menu path logic

This commit is contained in:
Ashley Wulber 2026-07-01 12:32:33 -04:00 committed by Ashley Wulber
parent be499d01af
commit 20dfd7c236

View file

@ -821,8 +821,8 @@ impl<'b, Message: Clone + 'static> Menu<'b, Message> {
let i = active.saturating_sub(start_index); let i = active.saturating_sub(start_index);
let mut rad = styling.menu_border_radius; let mut rad = styling.menu_border_radius;
let rad_0 = theme.cosmic().radius_0(); let rad_0 = theme.cosmic().radius_0();
if start_index == end_index { if start_index != end_index {
} else if 0 == i { if 0 == i {
rad[0] = rad_0[0]; rad[0] = rad_0[0];
rad[1] = rad_0[1]; rad[1] = rad_0[1];
} else if i == end_index - start_index { } else if i == end_index - start_index {
@ -831,6 +831,7 @@ impl<'b, Message: Clone + 'static> Menu<'b, Message> {
} else { } else {
rad = rad_0; rad = rad_0;
} }
}
let path_quad = renderer::Quad { let path_quad = renderer::Quad {
bounds: active_layout bounds: active_layout
.bounds() .bounds()