()
| 463 | } |
| 464 | |
| 465 | func (wb *WidgetBase) hasActiveGraphicsEffects() bool { |
| 466 | if wb.graphicsEffects == nil { |
| 467 | return false |
| 468 | } |
| 469 | |
| 470 | count := wb.graphicsEffects.Len() |
| 471 | |
| 472 | for _, gfx := range [...]WidgetGraphicsEffect{FocusEffect, InteractionEffect, ValidationErrorEffect} { |
| 473 | if wb.graphicsEffects.Contains(gfx) { |
| 474 | if gfx == nil { |
| 475 | count-- |
| 476 | } |
| 477 | } |
| 478 | } |
| 479 | |
| 480 | return count > 0 |
| 481 | } |
| 482 | |
| 483 | func (wb *WidgetBase) hasComplexBackground() bool { |
| 484 | if bg := wb.window.Background(); bg != nil && bg != nullBrushSingleton { |
no test coverage detected