use theme dependent font color for device log INFO messages

This commit is contained in:
Jan Käberich 2025-03-13 11:27:04 +01:00
parent 1fb1c85208
commit 8d219c0523

View file

@ -37,8 +37,10 @@ DeviceLog::~DeviceLog()
void DeviceLog::addLine(QString line) void DeviceLog::addLine(QString line)
{ {
// Set color depending on log level // Set color depending on log level.
QColor color = Qt::black; // Use theme dependent color for info messages
QColor color = QApplication::palette().text().color();
// Use fixed colors for other log levels
if(line.contains(",CRT]")) { if(line.contains(",CRT]")) {
color = Qt::red; color = Qt::red;
} else if(line.contains(",ERR]")) { } else if(line.contains(",ERR]")) {