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

dot graph : SVG not transparent #112

Open
JosueGauthier opened this issue May 2, 2023 · 2 comments
Open

dot graph : SVG not transparent #112

JosueGauthier opened this issue May 2, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@JosueGauthier
Copy link

Hello,
I have the following problem with generating a svg dot graph:
Screenshot from 2023-05-02 18-21-07

As you can see the dot graph is not transparent (ok it's weak but the 2 hexa colors are : #222222 for dot graph and #222224 for background), I try the solution : DOT_TRANSPARENT = YES but with new doxygen version it's a native feature.

I can change the css but if you have any solutions ?

Thanks,

@jothepro
Copy link
Owner

Afaik DOT_TRANSPARENT does only make the background of the diagram transparent, the boxes may be filled with different colors depending on the semantic meaning.

As you can see in the legend, the boxes may also be red or light gray.
Doxygen legend

Originally the generated diagrams have black contours and white background. In dark mode, doxygen-awesome applies a filter to all diagrams to make them match the dark background:

filter: brightness(89%) hue-rotate(180deg) invert();

In theory there is a fix to your problem by fine-tuning the magic numbers of this filter, in the lines L962 and L974 in doxygen-awesome.css. I tried for a while but couldn't really find the perfect values.

If you find better values or you are able to do the math to calculate what values are needed for brightness() and hue-rotate() to match the background-color, pls let me know! :)

@jothepro jothepro added the help wanted Extra attention is needed label May 11, 2023
@LDprg
Copy link

LDprg commented Mar 6, 2024

@jothepro
Maybe this website could help out fixing the colors:
Hex color to CSS filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants