Skip to content

Commit

Permalink
[ui] Further improve source fields properties colors to play well wit…
Browse files Browse the repository at this point in the history
…h any light/gray/dark themes
  • Loading branch information
github-actions[bot] authored and nirvn committed Mar 25, 2020
1 parent 720a104 commit f3a4826
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/qgssourcefieldsproperties.cpp
Expand Up @@ -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++ )
{
Expand Down

0 comments on commit f3a4826

Please sign in to comment.