Skip to content
Closed
3 changes: 1 addition & 2 deletions crates/egui/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,7 @@ impl Ui {
pub fn disable(&mut self) {
self.enabled = false;
if self.is_visible() {
self.painter
.set_fade_to_color(Some(self.visuals().fade_out_to_color()));
Comment thread
emilk marked this conversation as resolved.
self.painter.multiply_opacity(0.5);
}
}

Expand Down