Skip to content

lightbox: Show transparent images on gray background - #2510

Draft
ptr25 wants to merge 1 commit into
zulip:mainfrom
ptr25:fix/lightbox-transparent-images-2434
Draft

ptr25 wants to merge 1 commit into
zulip:mainfrom
ptr25:fix/lightbox-transparent-images-2434

Conversation

@ptr25

@ptr25 ptr25 commented Oct 28, 2026 •

Copy link
Copy Markdown

Summary

Transparent images can contain black details that disappear against the image lightbox's black background (issue #2434). Give image lightboxes a neutral gray background so both black and white details remain visible. Keep video lightboxes black.

Testing

  • flutter test --no-pub test/widgets/lightbox_test.dart --reporter expanded — passed (33 tests, 1 skipped).
  • flutter analyze --no-pub — passed with no issues.
  • Rendered a transparent test image containing black and white shapes in both light and dark appearance; both shapes are visible with the new background. No manual iOS device test yet.

Screenshots

The test image has matching black and white artwork on a transparent background. The black artwork disappears before this change and is visible afterward.

Before After
Black artwork is hidden on the black lightbox background Black and white artwork are both visible on the gray lightbox background

Design question

The issue points to the web app's gray background but does not specify a Flutter color. This uses Colors.grey.shade600 for a consistent mid-gray in both appearance modes. Is that the preferred shade?

Refs #2434.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant