Skip to main content

Module window

Module window 

Source
Expand description

Window — egui::Window with a title fill that stays put.

Stock egui title_ui overwrites egui::Window::title_frame fill with visuals.widgets.open.weak_bg_fill whenever the window is the top layer. Opening a second window (Theme Editor on top of the demo window, for example) flips that slot and the title bar changes color even if you passed an explicit title frame.

This wrapper forwards the stock builder API. On Window::show it pins widgets.open.weak_bg_fill to the requested title fill so focused and unfocused titles stay the same. The style is restored when show returns.

Structs§

Window
Builder for a floating window. Same API as egui::Window.