Skip to content
Permalink
Browse files

[ui] Further improve source fields properties colors to play well

with any light/gray/dark themes
  • Loading branch information
nirvn committed Mar 25, 2020
1 parent 5a3b1ce commit a8c5e1dca2e67ac6df9c59f985f59ba19dc95aa3
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/gui/vector/qgssourcefieldsproperties.cpp
@@ -154,10 +154,9 @@ void QgsSourceFieldsProperties::attributeAdded( int idx )
setRow( row, idx, fields.at( idx ) );
mFieldsList->setCurrentCell( row, idx );

bool dark = QgsGui::instance()->nativePlatformInterface()->hasDarkTheme();
QColor expressionColor = !dark ? QColor( 200, 200, 255 ) : QColor( 0, 80, 0 );
QColor joinColor = !dark ? QColor( 200, 255, 200 ) : QColor( 150, 0, 0 );
QColor defaultColor = !dark ? QColor( 255, 255, 200 ) : QColor();
QColor expressionColor = QColor( 103, 0, 243, 44 );
QColor joinColor = QColor( 0, 243, 79, 44 );
QColor defaultColor = QColor( 252, 255, 79, 44 );

for ( int i = 0; i < mFieldsList->columnCount(); i++ )
{

0 comments on commit a8c5e1d

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