Changed ui.disable() to modify opacity

It previously tinted elements, which could have lackluster effects.
This commit is contained in:
tye-exe
2025-04-16 20:36:13 +01:00
parent 0f1d6c2818
commit 3ceb246c2a
+1 -2
View File
@@ -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()));
self.painter.multiply_opacity(0.5);
}
}