mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Merge branch 'emilk:main' into TextEdit-Atoms-Alignment
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