opt: only enable highlight dictionary name on modern style

This commit is contained in:
yifang xiao 2023-05-09 10:49:44 +00:00 committed by xiaoyifang
parent 9c22e7bb21
commit b495a1006f
2 changed files with 5 additions and 2 deletions

View file

@ -142,7 +142,10 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word,
if( GlobalBroadcaster::instance()->getPreference()->darkReaderMode )
{
result += R"(<link href="qrc:///article-style-darkmode.css" media="all" rel="stylesheet" type="text/css">)";
//only enable this darkmode on modern style.
if( cfg.displayStyle == "modern" ) {
result += R"(<link href="qrc:///article-style-darkmode.css" media="all" rel="stylesheet" type="text/css">)";
}
// #242525 because Darkreader will invert pure white to this value
result += R"(

View file

@ -1,4 +1,4 @@
div.gdactivearticle .gddictname {
color:initial;
background: yellow;
background: rgb(0, 102, 184);
}