mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Bugfix: Dark Theme
Text color in message windows and progress bars fixed.
This commit is contained in:
committed by
Magne Sjaastad
parent
6eba1632ac
commit
3a2704e212
@@ -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 {
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user