1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Fix bug in ui stack color blending (#8021)

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
Lucas Meurer
2026-03-25 13:40:54 +01:00
committed by GitHub
parent 0b0c561a81
commit d232be740f

View File

@@ -265,10 +265,11 @@ impl UiStack {
let mut total = Color32::TRANSPARENT;
for node in self.iter() {
let fill = node.frame().fill;
if fill.is_opaque() {
return fill;
} else if fill != Color32::TRANSPARENT {
if fill != Color32::TRANSPARENT {
total = fill.blend(total);
if total.is_opaque() {
break;
}
}
}
total