mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Fade in windows, tooltips, popups, etc (#4587)
All `Area`s now have a quick fade-in animation. You can turn it off with `Area::fade_in` or `Window::fade_in` . The `Window` fade-out animation is now nicer: it fades all elements of the window, not just the frame. It can be controlled with `Window::fade_out`.
This commit is contained in:
@@ -63,7 +63,7 @@ impl super::View for WidgetGallery {
|
||||
fn ui(&mut self, ui: &mut egui::Ui) {
|
||||
ui.add_enabled_ui(self.enabled, |ui| {
|
||||
ui.set_visible(self.visible);
|
||||
ui.set_opacity(self.opacity);
|
||||
ui.multiply_opacity(self.opacity);
|
||||
|
||||
egui::Grid::new("my_grid")
|
||||
.num_columns(2)
|
||||
|
||||
Reference in New Issue
Block a user