Commit 2f4f230
committed
Restore Section title bar background lost after #3808
Section.updateHeaderImage was skipping the title-bar image whenever the
title-bar gradient color matched the title-bar background color. That
condition is too loose: the title-bar background is typically set
distinct from the section body (e.g. #eaeaea on a #ffffff body in the
light theme) and the image was what painted that contrast across the
title-bar area. After the optimization fired, the title bar collapsed
into the section body color and the visual cue was gone.
Tighten the short-circuit to require all three of gradient color,
title-bar background and section body background to be equal before
skipping the image. This preserves the optimization for genuinely flat
sections while restoring the prior look when the title-bar is meant to
contrast with the body.
Fixes #39451 parent f2e2f88 commit 2f4f230
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
468 | | - | |
| 467 | + | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| 472 | + | |
472 | 473 | | |
473 | 474 | | |
474 | 475 | | |
| |||
0 commit comments