Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub Context menu hover disappears #2704

Closed
lampsitter opened this issue Feb 9, 2023 · 2 comments
Closed

Sub Context menu hover disappears #2704

lampsitter opened this issue Feb 9, 2023 · 2 comments
Labels
bug Something is broken

Comments

@lampsitter
Copy link
Contributor

lampsitter commented Feb 9, 2023

Describe the bug
When hovering over a sub context menu the highlighting appears for one frame and then disappears.

Expected behavior
Hovered over button remains highlighted for more than the first frame.

Screenshots
Old behaviour:
egui_bug_old

Current:
egui_bug_new

Additional context
Seems like it was introduced in: #2621. Notably this line:

&ui.style().visuals.widgets.open

@lampsitter lampsitter added the bug Something is broken label Feb 9, 2023
@lictex
Copy link
Contributor

lictex commented Feb 9, 2023

its a dark style issue, works fine under light mode..

dark open style is wrongly set to be same as noninteractive, and should use hovered values instead

open: WidgetVisuals {
weak_bg_fill: Color32::from_gray(27),

@lampsitter
Copy link
Contributor Author

Looks like this behaves properly again in 0.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants