aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/ios/SwitchDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/ios/SwitchDelegate.qml')
-rw-r--r--src/quickcontrols/ios/SwitchDelegate.qml14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/quickcontrols/ios/SwitchDelegate.qml b/src/quickcontrols/ios/SwitchDelegate.qml
index 4b7d8bdccf..80e79580de 100644
--- a/src/quickcontrols/ios/SwitchDelegate.qml
+++ b/src/quickcontrols/ios/SwitchDelegate.qml
@@ -33,8 +33,8 @@ T.SwitchDelegate {
source: IOS.url + "switch-indicator"
ImageSelector on source {
states: [
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark},
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark},
{"checked": control.checked}
]
}
@@ -54,8 +54,8 @@ T.SwitchDelegate {
source: IOS.url + "switch-handle"
NinePatchImageSelector on source {
states: [
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark},
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark},
{"disabled": !control.enabled}
]
}
@@ -84,7 +84,7 @@ T.SwitchDelegate {
background: Rectangle {
implicitHeight: 44
- color: Qt.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
+ color: Application.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
NinePatchImage {
property real offset: control.icon.source.toString() !== "" ? control.icon.width + control.spacing : 0
x: control.leftPadding + offset
@@ -93,8 +93,8 @@ T.SwitchDelegate {
source: IOS.url + "itemdelegate-background"
NinePatchImageSelector on source {
states: [
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark},
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark},
]
}
}