mirror of
https://github.com/jankae/LibreVNA.git
synced 2025-12-06 07:12:10 +01:00
use theme dependent font color for device log INFO messages
This commit is contained in:
parent
1fb1c85208
commit
8d219c0523
|
|
@ -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]")) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue