Fix top panel font color when phone is set to dark mode but still a light style is used
parent
185250428f
commit
bbf0ffb060
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
Loading…
Reference in New Issue