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
981 stars 112 forks source link

Light theme Search Results not working when system theme is Dark #31

Closed kuenzign closed 3 years ago

kuenzign commented 3 years ago

If you have your system theme to Dark, but have the new theme toggle set to Light, the search results stay inverted (dark). I believe that a html:not(.light-mode) is missing here:

https://github.com/jothepro/doxygen-awesome-css/blob/8739758d46602cf90e95e349731faa2ea7109d8d/doxygen-awesome.css#L580-L584

It should probably be this instead:

@media (prefers-color-scheme: dark) {
    html:not(.light-mode) iframe#MSearchResults {
        filter: invert() hue-rotate(180deg);
    }
}
jothepro commented 3 years ago

Thanks for pointing this out! Fixed in https://github.com/jothepro/doxygen-awesome-css/commit/75869e7887bd203b97c74a8a55a6d9ba4b1f2f58