mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
use theme dependent font color for device log INFO messages
This commit is contained in:
parent
1fb1c85208
commit
8d219c0523
1 changed files with 4 additions and 2 deletions
|
|
@ -37,8 +37,10 @@ DeviceLog::~DeviceLog()
|
|||
|
||||
void DeviceLog::addLine(QString line)
|
||||
{
|
||||
// Set color depending on log level
|
||||
QColor color = Qt::black;
|
||||
// Set color depending on log level.
|
||||
// Use theme dependent color for info messages
|
||||
QColor color = QApplication::palette().text().color();
|
||||
// Use fixed colors for other log levels
|
||||
if(line.contains(",CRT]")) {
|
||||
color = Qt::red;
|
||||
} else if(line.contains(",ERR]")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue