From 0831ea800a488fa9f633a9204b6fd487bafcd6ae Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 23 Jan 2018 14:54:49 +0000 Subject: [PATCH] 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 --- displaytext.cpp | 2 +- mainwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/displaytext.cpp b/displaytext.cpp index 8d9b1dd30..0fa3682d7 100644 --- a/displaytext.cpp +++ b/displaytext.cpp @@ -191,7 +191,7 @@ void DisplayText::displayDecodedText(DecodedText const& decodedText, QString con bool bCQonly) { m_bPrincipalPrefix=ppfx; - QColor bg {Qt::white}; + QColor bg {Qt::transparent}; bool CQcall = false; if (decodedText.string ().contains (" CQ ") || decodedText.string ().contains (" CQDX ") diff --git a/mainwindow.cpp b/mainwindow.cpp index bed4f8ad1..152306539 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4682,7 +4682,7 @@ void MainWindow::msgtype(QString t, QLineEdit* tx) //msgtype() if(shortMsg) { p.setColor(QPalette::Base,"#66ffff"); } else { - p.setColor(QPalette::Base,Qt::white); + p.setColor(QPalette::Base,Qt::transparent); if(m_mode=="MSK144" and t.mid(0,1)=="<") { p.setColor(QPalette::Base,"#00ffff"); }