Skip to content

Commit 580e7eb

Browse files
authoredApr 4, 2019
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.
1 parent 4d566a3 commit 580e7eb

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3283,17 +3283,6 @@ void QgisApp::setTheme( const QString &themeName )
32833283
*/
32843284

32853285
QString theme = themeName;
3286-
#ifdef Q_OS_MAC
3287-
#if QT_VERSION < QT_VERSION_CHECK( 5, 12, 0 )
3288-
if ( theme == QStringLiteral( "default" ) &&
3289-
QgsGui::instance()->nativePlatformInterface()->hasDarkTheme() )
3290-
{
3291-
QString darkTheme = QStringLiteral( "Night Mapping" );
3292-
if ( QgsApplication::uiThemes().contains( darkTheme ) )
3293-
theme = darkTheme;
3294-
}
3295-
#endif
3296-
#endif
32973286

32983287
mStyleSheetBuilder->buildStyleSheet( mStyleSheetBuilder->defaultOptions() );
32993288
QgsApplication::setUITheme( theme );

0 commit comments

Comments
 (0)