Closed McSnipe97 closed 2 years ago
Following artifacts appear only after SERVER_BASED_SEARCH
is set to YES
.
Interesting. Can you provide a link or screenshot of the problem? I've never tested the theme with server based search, so there is a real chance that it is broken.
FWIW I ran into the same problem testing this theme, but only with Doxygen 1.8.17, with 1.9.1 it looks fine.
Of course, the theme does recommend using 1.9.1, so I guess it's not really a bug (I've been testing with 1.8.17 because it's the version available in Ubuntu Focal which is currently the latest platform directly supported by GitHub Actions).
The artifact looks like this But it goes away if I include these 2 extra files:
I'm running on Doxygen 1.9.3
I was able to produce a similar result, but only with a very old version of Doxygen (v1.8.15):
Setting just SERVER_BASED_SEARCH=YES
in Doxygen 1.9.3 didn't change the appearance of the searchbar for me.
Pls try adding this custom CSS:
#MSearchBox .right, #MSearchBox .left {
background-image: none;
}
Does this remove the artifacts? I don't really understand what's going on, but I think I'll just include this patch if it fixes the problem for you.
With 1.8.17 the CSS fix above is sufficient to remove the artefacts, but still shows the same squashed magnifying glass icon as in the screenshot above (with 1.9.3 the icon is properly round), so it still doesn't look great.
I think this should fix the squashed icon:
.left #MSearchSelect[src$=".png"] {
padding-left: 0
}
It's not a nice way to fix this but given the fact that most of doxygen-awesome-css is dirty workarounds, I guess it's good enough... ๐
I'll include both fixes in the theme soon. ๐
I can confirm that this fixes the problem with 1.8.17, thanks!
But keep in mind that I'm still not actively testing and supporting any versions below 1.9.1, so upgrading Doxygen would still be the proper fix. ;)
@vadz For generating docs in Github Actions I can recommend this Action: mattnotmitt/doxygen-action It allows choosing a dedicated version of Doxygen.
Nice, thanks! I didn't know about this action and using it would definitely make switching to 1.9.3 easier. We still need to fix some CSS issues in our own custom stylesheet (or just drop it entirely), but we'll switch to 1.9.3 and your theme when it's done. Thanks again!
FYI I've pushed the two patches that we discussed in this issue: https://github.com/jothepro/doxygen-awesome-css/commit/bf51192c4c9b17202a096fa7c2657f2d5fc30da3
It's not worth a fix release IMO because it only affects unsupported Doxygen versions. But it will be part of a future release, so I will close this issue for now.
Doxygen version 1.9.3 Doxygen-awesome-css version 2.0.2
Seeing old search bar design over the doxygen-awesome-css search bar.
My changes:
doxhead.html
doxfoot.html