mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
opt: only enable highlight dictionary name on modern style
This commit is contained in:
parent
9c22e7bb21
commit
b495a1006f
|
@ -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"(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
div.gdactivearticle .gddictname {
|
||||
color:initial;
|
||||
background: yellow;
|
||||
background: rgb(0, 102, 184);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue