Skip to content
Permalink
Browse files

remove forcing Night Mapping theme (#9700)

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 580e7eb6ba4e7a88a6d470f2907350c57f6c2907
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/app/qgisapp.cpp
@@ -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 );

0 comments on commit 580e7eb

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