pgadmin-org / pgadmin-org/pgadmin4
ERD Tool Picture export follows the theme - black background
Nobody has claimed this yet.
- 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:
- Run pgadmin in dark theme
- Create ERD diagram
- Try to export it as PNG and check image
- To fix for printing:
- Change theme to Standard
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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