Skip to content
Permalink
Browse files

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

…h any light/gray/dark themes
  • Loading branch information
github-actions authored and nirvn committed Mar 25, 2020
1 parent 720a104 commit f3a4826b53d6d9267f8c7a91bfb02144dc32131d
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/app/qgssourcefieldsproperties.cpp
@@ -153,10 +153,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 f3a4826

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