Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image always stored with white background #62

Closed
msawczyn opened this issue May 17, 2023 · 2 comments
Closed

Image always stored with white background #62

msawczyn opened this issue May 17, 2023 · 2 comments
Labels
bug Something isn't working released Issue is resolved in a current release
Milestone

Comments

@msawczyn
Copy link
Owner

From a marketplace comment:

Love your program. However, I'm trying to save a model as an image, and/or print it, and the background is all white. All of the connector lines are white, so they disappear, making the image/print pretty useless. Is there a way to set the background color? A way to set connector line color would also be nice. A simple color setting in the general Properties for the model would do, similar to the one for individual entities.

@msawczyn msawczyn added the bug Something isn't working label May 17, 2023
@msawczyn msawczyn added this to the 4.2.4 milestone May 17, 2023
@msawczyn
Copy link
Owner Author

This is an issue when you have an active dark theme.

The problem is that, while the Modeling SDK gives override capability for almost everything, the background of a stored image isn't one of them, and is set in a private method in the Diagram class.

To work around it, I've had to temporarily set the theme for a white background while the image is drawn. That will change the colors of all the elements to their defaults for a light background, but I don't see how to get around this without essentially a copy/paste of most of the Diagram class into my derived class and that's a really Bad Thing to do.

@msawczyn msawczyn added the released Issue is resolved in a current release label May 19, 2023
@vslee
Copy link

vslee commented Jun 23, 2023

Is it possible to use reflection to call the private method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue is resolved in a current release
Projects
None yet
Development

No branches or pull requests

2 participants