Bugfix: Dark Theme

Text color in message windows and progress bars fixed.
This commit is contained in:
Ruben Thoms
2020-10-06 11:41:31 +02:00
committed by Magne Sjaastad
parent 6eba1632ac
commit 3a2704e212
2 changed files with 11 additions and 2 deletions

View File

@@ -166,9 +166,10 @@ QToolButton:checked {
QLabel {
background-color: transparent;
color: $textColor;
}
.QWidget, QFrame, QMainWindow, QDialog, QMenu, QLabel, QCheckBox, QTabBar, QDockWidget {
.QWidget, QFrame, QMainWindow, QDialog, QMenu, QLabel, QCheckBox, QTabBar, QDockWidget, QTextEdit, QPlainTextEdit, QScrollArea, QTextBrowser {
background-color: $mainBackgroundColor;
color: $textColor;
border-color: $borderColor;
@@ -176,8 +177,14 @@ QLabel {
}
QProgressBar {
border-color: $borderColor;
text-align: center;
background-color: $backgroundColor1;
color: $textColor;
}
QStatusBar {
color: $textColor;
}
QAbstractItemView {

View File

@@ -20,6 +20,8 @@
#include "RiaRegressionTestRunner.h"
#include "RiuGuiTheme.h"
#include <QDockWidget>
#include <QMenu>
#include <QPlainTextEdit>
@@ -55,7 +57,7 @@ RiuMessagePanel::RiuMessagePanel( QDockWidget* parent )
//--------------------------------------------------------------------------------------------------
void RiuMessagePanel::addMessage( RILogLevel messageLevel, const QString& msg )
{
QColor clr = palette().color( QPalette::ColorRole::Text );
QColor clr = RiuGuiTheme::getColorByVariableName( "textColor" );
if ( messageLevel == RILogLevel::RI_LL_ERROR )
clr = Qt::red;
else if ( messageLevel == RILogLevel::RI_LL_WARNING )