Merge pull request #12116 from AdmiralCurtiss/log-colors

DolphinQt/LogWidget: Restore log window colors.
This commit is contained in:
JosJuice 2023-08-18 09:00:43 +02:00 committed by GitHub
commit a9ec2a6e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -152,10 +152,8 @@ void LogWidget::CreateWidgets()
m_log_text->setUndoRedoEnabled(false); m_log_text->setUndoRedoEnabled(false);
m_log_text->setMaximumBlockCount(MAX_LOG_LINES); m_log_text->setMaximumBlockCount(MAX_LOG_LINES);
QPalette palette = m_log_text->palette(); m_log_text->setStyleSheet(
palette.setColor(QPalette::Base, Qt::black); QStringLiteral("QPlainTextEdit { background-color: black; color: white; }"));
palette.setColor(QPalette::Text, Qt::white);
m_log_text->setPalette(palette);
} }
void LogWidget::ConnectWidgets() void LogWidget::ConnectWidgets()