Define bg colors in a way that works better for dark themes. Thanks to N7AJF!

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8431 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2018-01-23 14:54:49 +00:00
parent a3fdcf7148
commit 0831ea800a
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ void DisplayText::displayDecodedText(DecodedText const& decodedText, QString con
bool bCQonly) bool bCQonly)
{ {
m_bPrincipalPrefix=ppfx; m_bPrincipalPrefix=ppfx;
QColor bg {Qt::white}; QColor bg {Qt::transparent};
bool CQcall = false; bool CQcall = false;
if (decodedText.string ().contains (" CQ ") if (decodedText.string ().contains (" CQ ")
|| decodedText.string ().contains (" CQDX ") || decodedText.string ().contains (" CQDX ")

View File

@ -4682,7 +4682,7 @@ void MainWindow::msgtype(QString t, QLineEdit* tx) //msgtype()
if(shortMsg) { if(shortMsg) {
p.setColor(QPalette::Base,"#66ffff"); p.setColor(QPalette::Base,"#66ffff");
} else { } else {
p.setColor(QPalette::Base,Qt::white); p.setColor(QPalette::Base,Qt::transparent);
if(m_mode=="MSK144" and t.mid(0,1)=="<") { if(m_mode=="MSK144" and t.mid(0,1)=="<") {
p.setColor(QPalette::Base,"#00ffff"); p.setColor(QPalette::Base,"#00ffff");
} }