Fix top panel font color when phone is set to dark mode but still a light style is used
This commit is contained in:
parent
185250428f
commit
bbf0ffb060
@ -131,8 +131,8 @@ ios: {
|
|||||||
message("iOS build")
|
message("iOS build")
|
||||||
HEADERS += platformintegration/ios/platformhelperios.h
|
HEADERS += platformintegration/ios/platformhelperios.h
|
||||||
SOURCES += platformintegration/ios/platformhelperios.cpp
|
SOURCES += platformintegration/ios/platformhelperios.cpp
|
||||||
OBJECTIVE_SOURCES += $${IOS_PACKAGE_DIR}/platformhelperios.mm \
|
OBJECTIVE_SOURCES += platformintegration/ios/platformhelperios.mm \
|
||||||
$${IOS_PACKAGE_DIR}/pushnotifications.mm \
|
platformintegration/ios/pushnotifications.mm \
|
||||||
|
|
||||||
OTHER_FILES += $${OBJECTIVE_SOURCES}
|
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) {
|
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 {
|
} else {
|
||||||
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
|
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user