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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user