iOS: Add version check when setting accent color
UIColor.tintColor is only available on iOS 15.0 or newer. Ammends commit 69cc7f946a66527c3f2b7a28510dcb37459dc33a Pick-to: 6.6 Change-Id: Id82006629ee3c3d2548ea39afde265cdccf2cdab Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
ee956824db
commit
00bdf56b83
@ -70,6 +70,7 @@ void QIOSTheme::initializeSystemPalette()
|
|||||||
s_systemPalette.setBrush(QPalette::Highlight, QColor(11, 70, 150, 60));
|
s_systemPalette.setBrush(QPalette::Highlight, QColor(11, 70, 150, 60));
|
||||||
s_systemPalette.setBrush(QPalette::HighlightedText, qt_mac_toQBrush(UIColor.labelColor.CGColor));
|
s_systemPalette.setBrush(QPalette::HighlightedText, qt_mac_toQBrush(UIColor.labelColor.CGColor));
|
||||||
|
|
||||||
|
if (@available(ios 15.0, *))
|
||||||
s_systemPalette.setBrush(QPalette::AccentColor, qt_mac_toQBrush(UIColor.tintColor.CGColor));
|
s_systemPalette.setBrush(QPalette::AccentColor, qt_mac_toQBrush(UIColor.tintColor.CGColor));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user