fix(menu): path highlight corners flipped
This commit is contained in:
parent
d71c25879e
commit
abaa06f10f
1 changed files with 5 additions and 5 deletions
|
|
@ -703,7 +703,7 @@ impl<'b, Message: Clone + 'static> Menu<'b, Message> {
|
|||
}
|
||||
|
||||
_ => {}
|
||||
};
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
|
|
@ -811,11 +811,11 @@ impl<'b, Message: Clone + 'static> Menu<'b, Message> {
|
|||
let rad_0 = theme.cosmic().radius_0();
|
||||
if start_index != end_index {
|
||||
if 0 == i {
|
||||
rad[0] = rad_0[0];
|
||||
rad[1] = rad_0[1];
|
||||
rad[2] = rad_0[0];
|
||||
rad[3] = rad_0[1];
|
||||
} else if i == end_index - start_index {
|
||||
rad[2] = rad_0[2];
|
||||
rad[3] = rad_0[3];
|
||||
rad[0] = rad_0[2];
|
||||
rad[1] = rad_0[3];
|
||||
} else {
|
||||
rad = rad_0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue