pgadmin-org / pgadmin-org/pgadmin4

ERD Tool Picture export follows the theme - black background

Open
#7,543 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
3.8k
Forks
891
Avg merge
4d 7h
Merged PRs (30d)
8

Description

Describe the bug
When I tried to export the ERD diagram into Image/PNG, I was surprised to get PNG with white text and black background. That made it difficult for print. After I changed Theme to Standard, exported image became white background, but text was nearly white too. I had to change text color on each table.

To Reproduce
Steps to reproduce the behavior:

  1. Run pgadmin in dark theme
  2. Create ERD diagram
  3. Try to export it as PNG and check image
  4. To fix for printing:
  5. Change theme to Standard
  6. Change text color on each table/object

Expected behavior

Probably best would be to have a selection with options:

  • export in format following the theme (current)
  • printer friendly export, with forced white background and contrast text color

Error message

no error messages displayed

Screenshots

Desktop (please complete the following information):

  • Version - 8.7
  • Application Mode: Desktop
  • Current User: pgadmin4@pgadmin.org
  • NW.js Version 0.77.0
  • Browser Chromium 114.0.5735.91
  • Operating System Windows-10-10.0.19045-SP0

Additional context

ERD tool

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.

Research direction

Start by reproducing the ERD PNG export in Desktop mode with a dark theme, then compare it with the Standard theme behavior described in the report. Done should mean the export offers the requested theme-following and printer-friendly choices, with the printer-friendly result using a white background and readable contrasting text.

Written by the indexing model from the issue text.

Assessment

Domain
database, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.