microsoft / microsoft/pxt-microbit

When printing, the icons in "show icon" blocks are rendered without sufficient contrast

Open
#4,618 0 comments 0 reactions 1 assignee View on GitHub

@srietkerk is already working on this.

Since Jun 30, 2025.

P2 print
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

When printing, the icons in "show icon" blocks are rendered without sufficient contrast. The 'on' pixels in the icon should be rendered in black instead of white.

To Reproduce
Steps to reproduce the behavior:

  1. Drag the 'show icon (heart)' block into the 'on start' block.
  2. Click gear icon, select printing.
  3. Wait for the print preview dialog to show.
  4. Inspect the print preview.

Expected behavior
The heart icon should be black ('on' pixels) and gray ('off' pixels).
Now the 'on' pixels of the icon are white, which is not distinguishable from the background.

Screenshots
image

micro:bit version (please complete the following information):
Not applicable.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox and Edge
  • Version: makecode.microbit.org version = 4.0.18

Smartphone (please complete the following information):
Not applicable. Anyway, the fixed code should be tested on smartphones if printing is possible.

Additional context
None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.