Fix top panel font color when phone is set to dark mode but still a light style is used

pull/667/head
Michael Zanetti 2021-09-13 14:00:01 +02:00
parent 185250428f
commit bbf0ffb060
3 changed files with 3 additions and 3 deletions

View File

@ -131,8 +131,8 @@ ios: {
message("iOS build")
HEADERS += platformintegration/ios/platformhelperios.h
SOURCES += platformintegration/ios/platformhelperios.cpp
OBJECTIVE_SOURCES += $${IOS_PACKAGE_DIR}/platformhelperios.mm \
$${IOS_PACKAGE_DIR}/pushnotifications.mm \
OBJECTIVE_SOURCES += platformintegration/ios/platformhelperios.mm \
platformintegration/ios/pushnotifications.mm \
OTHER_FILES += $${OBJECTIVE_SOURCES}

View File

@ -115,7 +115,7 @@ void PlatformHelperIOS::setTopPanelColorInternal(const QColor &color)
}
if (((color.red() * 299 + color.green() * 587 + color.blue() * 114) / 1000) > 123) {
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDarkContent animated:YES];
} else {
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
}