/* FLImaging(R) API Reference - dark mode logo swap
 *
 * Doxyfile:
 *   PROJECT_LOGO          = logo/FourthLogic_Transparent.svg          (black text, light mode)
 *   HTML_EXTRA_FILES      = logo/FourthLogic_WhiteText_Transparent.svg    (white text, dark mode)
 *   HTML_EXTRA_STYLESHEET = doxygen-awesome-css/doxygen-awesome.css logo-darkmode-css/logo-darkmode.css
 *
 * Doxygen copies the logo, extra files and extra stylesheets into the root of the
 * HTML output folder (sub-folders are dropped), so only the file name is used below.
 */

/* dark mode that follows the OS setting (HTML_COLORSTYLE = AUTO_LIGHT, Doxygen Awesome auto) */
@media (prefers-color-scheme: dark) {
  html:not(.light-mode) #projectlogo img {
    content: url("FourthLogic_WhiteText_Transparent.svg");
  }
}

/* dark mode chosen with a toggle button (Doxygen Awesome dark mode toggle) */
html.dark-mode #projectlogo img {
  content: url("FourthLogic_WhiteText_Transparent.svg");
}

/* logo size (applies to both modes) - change the height only, width follows the aspect ratio */
#projectlogo img {
  height: 20px;
  width: auto;
}
