jothepro / doxygen-awesome-css

Custom CSS theme for doxygen html-documentation with lots of customization parameters.
https://jothepro.github.io/doxygen-awesome-css/
MIT License
1.05k stars 118 forks source link

Chromium dark mode and doxygen light mode #166

Closed Tradias closed 1 day ago

Tradias commented 2 days ago

I have been trying to update past doxygen 1.9.4 for a while now but hitting this visual unpleasentry. This only happens when the browser is set to dark mode (see below).

Doxygen 1.9.5+ (1.9.4 works fine)
Doxygen-awesome v2.3.4 or earlier
CMake 3.31.0 or earlier

Example code: https://github.com/Tradias/example-vcpkg-grpc/tree/master/doxygen-awesome

Brave and Microsoft Edge, both look like 💩 in light mode

light-mode

Interestingly your documentation looks fine:

light-mode-awesome

How to set dark mode in the browser

Brave

brave-dark

Microsoft Edge

edge-dark

Tradias commented 1 day ago

Looks like a have a small error here:

https://github.com/Tradias/example-vcpkg-grpc/blob/f9145c04efb5dbd429feab241f44db05e5866034/doxygen-awesome/CMakeLists.txt#L18

set(HTML_COLORSTYLE "LIGHT")

It should be

set(DOXYGEN_HTML_COLORSTYLE "LIGHT")

That took a while to find 🙈