Commit 0361917
committed
widgets: flatten transparent background to white
OH_Partner_frame.png has an alpha channel — the right-side content area
where name, commits, and kudos are composited was transparent rather
than opaque white. The kudos laurel badge composited on top has a white
background, making the two visually inconsistent: the laurel shows white
while surrounding areas are transparent, appearing as a checkerboard in
image viewers or taking on the page background color in browsers.
Add image.flatten to setup_blank in badge_helper.rb. flatten fills
transparent pixels with the current background color, which is already
set to white on the line above, producing a fully opaque image before
any compositing begins. setup_blank is shared by all three badge types
(Account, Partner, Thin), so all affected test fixtures are regenerated.1 parent 88203c0 commit 0361917
9 files changed
Lines changed: 1 addition & 0 deletions
File tree
- lib/widget_badge
- test/data/widget_badge
- account
- partner
- thin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
Loading
Loading
Loading
Loading
Loading
Loading
Loading
0 commit comments