umldoclet
umldoclet copied to clipboard
Font colour is not set explicitly, rendering white text unreadable in dark mode
Expected Behavior
Font is readable even in dark mode.
Actual Behavior
When using a browser or IDE javadoc viewer in dark mode, the font is not readable as it is rendered in white.
Steps to Reproduce the Problem
- Switch your browser to forced dark mode
- Open generated docs via IDE or browser
- See white text (as text uses default colour) on yellowish background (as this is explicitly set).
Specifications
- Version: all
- Platform: any
- Java version: any
- (If open source) Project link: n/a
@bmarwell Do you know of a way to define a .puml
diagram with a color definition in such a way that the generated .svg
image displays correctly in both regular and dark mode?
Hi, not really (I have not looked into it yet). But the box inner colour (bg colour) is fixed yellow, so a fixed black font should suffice.
Hi, not really (I have not looked into it yet). But the box inner colour (bg colour) is fixed yellow, so a fixed black font should suffice.
That sounds doable 😉 thanks for clarifying!
@bmarwell, do you think you could test with the latest snapshot version whether this issue still persists?
I upgraded the PlantUML version and if I open the SVG images and change the background to #000000 (black), the image is still readable.
To use the snapshot from maven, make sure you enable the snapshot repository:
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
Then you can change the 2.0.12
version of the doclet to 2.0.13-SNAPHOT
to try it out.
Hey @sjoerdtalsma, I currently do not maintain a project with PlantUML anymore 🙈 I might be able to apply it into a library soon, though. Sorry for the delay!
No worries, I'll leave this issue open for a bit longer.