Skip to content

Commit

Permalink
remove forcing Night Mapping theme (#9700)
Browse files Browse the repository at this point in the history
This hack was introduced when Qt had poor support of Mac Dark Theme so that the combination of the default QGIS theme and Dark Theme on the OS was forcing to use QGIS Night Mapping theme.
Since Qt 5.12, it does look good and it's the last Qt LTS version.
  • Loading branch information
3nids committed Apr 4, 2019
1 parent 4d566a3 commit 580e7eb
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/app/qgisapp.cpp
Expand Up @@ -3283,17 +3283,6 @@ void QgisApp::setTheme( const QString &themeName )
*/

QString theme = themeName;
#ifdef Q_OS_MAC
#if QT_VERSION < QT_VERSION_CHECK( 5, 12, 0 )
if ( theme == QStringLiteral( "default" ) &&
QgsGui::instance()->nativePlatformInterface()->hasDarkTheme() )
{
QString darkTheme = QStringLiteral( "Night Mapping" );
if ( QgsApplication::uiThemes().contains( darkTheme ) )
theme = darkTheme;
}
#endif
#endif

mStyleSheetBuilder->buildStyleSheet( mStyleSheetBuilder->defaultOptions() );
QgsApplication::setUITheme( theme );
Expand Down

0 comments on commit 580e7eb

Please sign in to comment.