Skip to content

Commit

Permalink
Menu fix: use the open widget style for open menus
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 23, 2023
1 parent c198291 commit 824e687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl SubMenuButton {
sub_id: Id,
) -> &'a WidgetVisuals {
if menu_state.is_open(sub_id) {
&ui.style().visuals.widgets.hovered
&ui.style().visuals.widgets.open
} else {
ui.style().interact(response)
}
Expand Down

0 comments on commit 824e687

Please sign in to comment.