Skip to content
Permalink
Browse files

use transparent color

  • Loading branch information
3nids authored and nyalldawson committed Mar 24, 2020
1 parent d5f3568 commit 6038a7b34c92a53653ea4396b5b024f10451be33
Showing with 16 additions and 21 deletions.
  1. +16 −21 src/gui/qgsexpressionbuilderwidget.cpp
@@ -13,22 +13,6 @@
* *
***************************************************************************/

#include <QMenu>
#include <QFile>
#include <QTextStream>
#include <QDir>
#include <QInputDialog>
#include <QComboBox>
#include <QGraphicsOpacityEffect>
#include <QPropertyAnimation>
#include <QMessageBox>
#include <QVersionNumber>
#include <QDateTime>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QFileDialog>

#include "qgsexpressionbuilderwidget.h"
#include "qgslogger.h"
#include "qgsexpression.h"
@@ -49,9 +33,22 @@
#include "qgsfieldformatterregistry.h"
#include "qgsfieldformatter.h"
#include "qgsexpressionstoredialog.h"
#include "qgsgui.h"
#include "qgsnative.h"

#include <QMenu>
#include <QFile>
#include <QTextStream>
#include <QDir>
#include <QInputDialog>
#include <QComboBox>
#include <QGraphicsOpacityEffect>
#include <QPropertyAnimation>
#include <QMessageBox>
#include <QVersionNumber>
#include <QDateTime>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QFileDialog>

QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
: QWidget( parent )
@@ -592,9 +589,7 @@ void QgsExpressionBuilderWidget::registerItem( const QString &group,
//Recent group should always be last group
newgroupNode->setData( group.startsWith( QLatin1String( "Recent (" ) ) ? 2 : 1, QgsExpressionItem::CUSTOM_SORT_ROLE );
newgroupNode->appendRow( item );
bool dark = QgsGui::instance()->nativePlatformInterface()->hasDarkTheme();
QColor backgroundColor = !dark ? QColor( 238, 238, 238 ) : QColor( 40, 40, 40 );
newgroupNode->setBackground( QBrush( backgroundColor ) );
newgroupNode->setBackground( QBrush( QColor( 150, 150, 150, 150 ) ) );
mModel->appendRow( newgroupNode );
mExpressionGroups.insert( group, newgroupNode );
}

0 comments on commit 6038a7b

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