Skip to content
Permalink
Browse files

[theme] fix invisile text in field expression widget in dark themes

only on MacOS at the moment
  • Loading branch information
3nids committed Apr 3, 2019
1 parent 7410fb0 commit e2915ffdab12288326b2c40c89601cdeb53099f5
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/gui/qgsfieldexpressionwidget.cpp
@@ -18,6 +18,8 @@
#include <QObject>
#include <QKeyEvent>

#include "qgsgui.h"
#include "qgsnative.h"
#include "qgsapplication.h"
#include "qgsfieldexpressionwidget.h"
#include "qgsexpressionbuilderdialog.h"
@@ -364,7 +366,10 @@ void QgsFieldExpressionWidget::updateLineEditStyle( const QString &expression )
}
else
{
palette.setColor( QPalette::Text, Qt::black );
if ( QgsGui::instance()->nativePlatformInterface()->hasDarkTheme() )
palette.setColor( QPalette::Text, Qt::white );
else
palette.setColor( QPalette::Text, Qt::black );
}
}
mCombo->lineEdit()->setPalette( palette );

0 comments on commit e2915ff

Please sign in to comment.
You can’t perform that action at this time.