Skip to content

Commit abb0f73

Browse files
authoredJan 10, 2019
Merge pull request #8825 from nirvn/osx
[themes] Force fusion style for non-default UI themes on OS X
2 parents c263750 + c7abba0 commit abb0f73

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎src/app/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,6 @@ int main( int argc, char *argv[] )
12231223
// Set the application style. If it's not set QT will use the platform style except on Windows
12241224
// as it looks really ugly so we use QPlastiqueStyle.
12251225
QString desiredStyle = settings.value( QStringLiteral( "qgis/style" ) ).toString();
1226-
#ifndef Q_OS_MACX
12271226
const QString theme = settings.value( QStringLiteral( "UI/UITheme" ) ).toString();
12281227
if ( theme != QLatin1String( "default" ) )
12291228
{
@@ -1232,7 +1231,6 @@ int main( int argc, char *argv[] )
12321231
desiredStyle = QStringLiteral( "fusion" );
12331232
}
12341233
}
1235-
#endif
12361234
const QString activeStyleName = QApplication::style()->metaObject()->className();
12371235
if ( desiredStyle.contains( QLatin1String( "adwaita" ), Qt::CaseInsensitive )
12381236
|| ( desiredStyle.isEmpty() && activeStyleName.contains( QLatin1String( "adwaita" ), Qt::CaseInsensitive ) ) )

0 commit comments

Comments
 (0)
Please sign in to comment.