()
| 481 | } |
| 482 | |
| 483 | func (wb *WidgetBase) hasComplexBackground() bool { |
| 484 | if bg := wb.window.Background(); bg != nil && bg != nullBrushSingleton { |
| 485 | return !bg.simple() |
| 486 | } |
| 487 | |
| 488 | var complex bool |
| 489 | wb.ForEachAncestor(func(window Window) bool { |
| 490 | if bg := window.Background(); bg != nil && !bg.simple() { |
| 491 | complex = true |
| 492 | return false |
| 493 | } |
| 494 | |
| 495 | return true |
| 496 | }) |
| 497 | |
| 498 | return complex |
| 499 | } |
| 500 | |
| 501 | func ancestor(w Widget) Form { |
| 502 | if w == nil { |
no test coverage detected