mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Three things a menu needs and nothing else does: * A submenu asked `Frame::menu` for its frame directly, so it ignored the theme. It now resolves the same `PopupStyle` a `Popup` does — it needs the margin itself, to place the submenu and to decide how much of the parent menu counts as hovered. * `ScrollStyle::overflow_margin` lets a scroll area's contents paint a little outside the viewport, at the ends of the scroll range where nothing could scroll into view through the gap. A menu item whose fill bleeds past its own box needs it; without it the fill is sliced. * A frameless button dropped its inner margin but kept the outer one, so its contents shifted as soon as it was hovered. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GUI implementation
This is the core library crate egui. It is fully platform independent without any backend. You give the egui library input each frame (mouse pos etc), and it outputs a triangle mesh for you to paint.