aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols')
-rw-r--r--src/quickcontrols/ios/Switch.qml3
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast.pngbin0 -> 1906 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast@2x.pngbin0 -> 4616 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast@3x.pngbin0 -> 8258 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast.pngbin0 -> 1829 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast@2x.pngbin0 -> 4372 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast@3x.pngbin0 -> 7874 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-dark-highcontrast.pngbin0 -> 1717 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-dark-highcontrast@2x.pngbin0 -> 4000 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-dark-highcontrast@3x.pngbin0 -> 7095 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-light-highcontrast.pngbin0 -> 1667 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-light-highcontrast@2x.pngbin0 -> 3848 bytes
-rw-r--r--src/quickcontrols/ios/images/switch-indicator-light-highcontrast@3x.pngbin0 -> 6743 bytes
13 files changed, 2 insertions, 1 deletions
diff --git a/src/quickcontrols/ios/Switch.qml b/src/quickcontrols/ios/Switch.qml
index 93afe9092a..9d02c6e219 100644
--- a/src/quickcontrols/ios/Switch.qml
+++ b/src/quickcontrols/ios/Switch.qml
@@ -35,7 +35,8 @@ T.Switch {
states: [
{"light": Application.styleHints.colorScheme === Qt.Light},
{"dark": Application.styleHints.colorScheme === Qt.Dark},
- {"checked": control.checked}
+ {"checked": control.checked},
+ {"highcontrast": Application.styleHints.accessibility.contrastPreference === Qt.HighContrast}
]
}
diff --git a/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast.png b/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast.png
new file mode 100644
index 0000000000..f2ebde954a
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast@2x.png b/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast@2x.png
new file mode 100644
index 0000000000..53e56c72f5
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast@2x.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast@3x.png b/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast@3x.png
new file mode 100644
index 0000000000..57ee35683b
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-checked-dark-highcontrast@3x.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast.png b/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast.png
new file mode 100644
index 0000000000..7d61d8ce2c
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast@2x.png b/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast@2x.png
new file mode 100644
index 0000000000..5532073093
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast@2x.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast@3x.png b/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast@3x.png
new file mode 100644
index 0000000000..0d86bc715d
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-checked-light-highcontrast@3x.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast.png b/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast.png
new file mode 100644
index 0000000000..fecd0fcc84
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast@2x.png b/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast@2x.png
new file mode 100644
index 0000000000..982e3e64f8
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast@2x.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast@3x.png b/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast@3x.png
new file mode 100644
index 0000000000..b951beca2d
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-dark-highcontrast@3x.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-light-highcontrast.png b/src/quickcontrols/ios/images/switch-indicator-light-highcontrast.png
new file mode 100644
index 0000000000..926dd1fead
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-light-highcontrast.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-light-highcontrast@2x.png b/src/quickcontrols/ios/images/switch-indicator-light-highcontrast@2x.png
new file mode 100644
index 0000000000..565deaf251
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-light-highcontrast@2x.png
Binary files differ
diff --git a/src/quickcontrols/ios/images/switch-indicator-light-highcontrast@3x.png b/src/quickcontrols/ios/images/switch-indicator-light-highcontrast@3x.png
new file mode 100644
index 0000000000..59a7f06289
--- /dev/null
+++ b/src/quickcontrols/ios/images/switch-indicator-light-highcontrast@3x.png
Binary files differ