From 8a480ca500da0cf1ce0f1847c82eb598b9efcbb6 Mon Sep 17 00:00:00 2001 From: Raghuram Date: Sun, 26 Mar 2023 23:27:09 +0530 Subject: [PATCH] Fixes Dark mode support(issue#829) --- doc/doxygen.conf | 2 +- doc/ns3_html_theme/static/ns3_stylesheet.css | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/doc/doxygen.conf b/doc/doxygen.conf index 1ee923022..4f78da138 100644 --- a/doc/doxygen.conf +++ b/doc/doxygen.conf @@ -2693,5 +2693,5 @@ GENERATE_LEGEND = YES DOT_CLEANUP = YES # Disable dark mode in the generated HTML in Doxygen 1.9.6 or greater. -HTML_COLORSTYLE = LIGHT +# HTML_COLORSTYLE = LIGHT diff --git a/doc/ns3_html_theme/static/ns3_stylesheet.css b/doc/ns3_html_theme/static/ns3_stylesheet.css index c20341dbc..e71944956 100644 --- a/doc/ns3_html_theme/static/ns3_stylesheet.css +++ b/doc/ns3_html_theme/static/ns3_stylesheet.css @@ -10,16 +10,21 @@ dl { font-size: 12px; } -/* Dark mode is not supported in Doxygen versions earlier than 1.9.6 +/* Dark mode is not supported in Doxygen versions earlier than 1.9.6 */ @media (prefers-color-scheme: dark) { body, table, div, p, - dl { + dl, + div.body, + div.sphinxsidebar h3, + div.sphinxsidebar h4 , + div.sphinxsidebar h3 a{ color: ivory; + background:black; } -} */ +} a { color: #91A501; @@ -110,8 +115,8 @@ div.sphinxsidebar a { } #projecttext { - align: left; - font-color: white; + text-align: left; + color: white; padding-left: 2em; width: 250px; }