1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -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:
Emil Ernerfeldt
2024-05-30 16:22:12 +02:00
committed by GitHub
parent 6282844f65
commit 84d204246f
4 changed files with 74 additions and 37 deletions

View File

@@ -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)