aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/ios
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/ios')
-rw-r--r--src/quickcontrols/ios/BusyIndicator.qml2
-rw-r--r--src/quickcontrols/ios/CheckBox.qml4
-rw-r--r--src/quickcontrols/ios/CheckDelegate.qml10
-rw-r--r--src/quickcontrols/ios/ComboBox.qml8
-rw-r--r--src/quickcontrols/ios/Dial.qml4
-rw-r--r--src/quickcontrols/ios/Dialog.qml4
-rw-r--r--src/quickcontrols/ios/DialogButtonBox.qml8
-rw-r--r--src/quickcontrols/ios/Drawer.qml4
-rw-r--r--src/quickcontrols/ios/Frame.qml2
-rw-r--r--src/quickcontrols/ios/GroupBox.qml2
-rw-r--r--src/quickcontrols/ios/ItemDelegate.qml6
-rw-r--r--src/quickcontrols/ios/Menu.qml4
-rw-r--r--src/quickcontrols/ios/MenuBar.qml2
-rw-r--r--src/quickcontrols/ios/MenuItem.qml4
-rw-r--r--src/quickcontrols/ios/MenuSeparator.qml4
-rw-r--r--src/quickcontrols/ios/PageIndicator.qml4
-rw-r--r--src/quickcontrols/ios/Popup.qml4
-rw-r--r--src/quickcontrols/ios/ProgressBar.qml12
-rw-r--r--src/quickcontrols/ios/RadioButton.qml4
-rw-r--r--src/quickcontrols/ios/RadioDelegate.qml10
-rw-r--r--src/quickcontrols/ios/RangeSlider.qml16
-rw-r--r--src/quickcontrols/ios/ScrollBar.qml4
-rw-r--r--src/quickcontrols/ios/ScrollIndicator.qml4
-rw-r--r--src/quickcontrols/ios/SelectionRectangle.qml4
-rw-r--r--src/quickcontrols/ios/Slider.qml12
-rw-r--r--src/quickcontrols/ios/SpinBox.qml12
-rw-r--r--src/quickcontrols/ios/SwipeDelegate.qml6
-rw-r--r--src/quickcontrols/ios/Switch.qml8
-rw-r--r--src/quickcontrols/ios/SwitchDelegate.qml14
-rw-r--r--src/quickcontrols/ios/TabBar.qml2
-rw-r--r--src/quickcontrols/ios/ToolBar.qml2
-rw-r--r--src/quickcontrols/ios/ToolTip.qml4
-rw-r--r--src/quickcontrols/ios/TreeViewDelegate.qml10
-rw-r--r--src/quickcontrols/ios/impl/DialogButtonBoxDelegate.qml6
34 files changed, 103 insertions, 103 deletions
diff --git a/src/quickcontrols/ios/BusyIndicator.qml b/src/quickcontrols/ios/BusyIndicator.qml
index 3fb08070df..cb0a95b861 100644
--- a/src/quickcontrols/ios/BusyIndicator.qml
+++ b/src/quickcontrols/ios/BusyIndicator.qml
@@ -27,7 +27,7 @@ T.BusyIndicator {
contentItem: Image {
property int currentImage: 8
source: IOS.url + "busyindicator-frame-0" + currentImage +
- (Qt.styleHints.colorScheme === Qt.Light ? "-light.png" : "-dark.png")
+ (Application.styleHints.colorScheme === Qt.Light ? "-light.png" : "-dark.png")
fillMode: Image.PreserveAspectFit
NumberAnimation on currentImage {
running: control.visible && control.running
diff --git a/src/quickcontrols/ios/CheckBox.qml b/src/quickcontrols/ios/CheckBox.qml
index 59f1c8bce4..13c6819e38 100644
--- a/src/quickcontrols/ios/CheckBox.qml
+++ b/src/quickcontrols/ios/CheckBox.qml
@@ -27,8 +27,8 @@ T.CheckBox {
states: [
{"checked": control.checkState === Qt.Checked},
{"partially-checked": control.checkState === Qt.PartiallyChecked},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark}
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark}
]
}
}
diff --git a/src/quickcontrols/ios/CheckDelegate.qml b/src/quickcontrols/ios/CheckDelegate.qml
index b421430311..fd160220fb 100644
--- a/src/quickcontrols/ios/CheckDelegate.qml
+++ b/src/quickcontrols/ios/CheckDelegate.qml
@@ -32,8 +32,8 @@ T.CheckDelegate {
states: [
{"checked": control.checkState === Qt.Checked},
{"partially-checked": control.checkState === Qt.PartiallyChecked},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark}
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark}
]
}
}
@@ -55,7 +55,7 @@ T.CheckDelegate {
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.down ? 0 : control.leftPadding + offset
@@ -65,8 +65,8 @@ T.CheckDelegate {
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},
{"pressed": control.down}
]
}
diff --git a/src/quickcontrols/ios/ComboBox.qml b/src/quickcontrols/ios/ComboBox.qml
index e6136e34c0..d78552ec52 100644
--- a/src/quickcontrols/ios/ComboBox.qml
+++ b/src/quickcontrols/ios/ComboBox.qml
@@ -49,8 +49,8 @@ T.ComboBox {
states: [
{"edge": isFirstItem || isLastItem },
{"single": isSingleItem},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark},
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark},
{"pressed": down}
]
}
@@ -69,8 +69,8 @@ T.ComboBox {
: defaultColor
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},
{"pressed": control.down}
]
}
diff --git a/src/quickcontrols/ios/Dial.qml b/src/quickcontrols/ios/Dial.qml
index fe21fdccc4..41ce35caf2 100644
--- a/src/quickcontrols/ios/Dial.qml
+++ b/src/quickcontrols/ios/Dial.qml
@@ -92,8 +92,8 @@ T.Dial {
source: IOS.url + "slider-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}
]
}
diff --git a/src/quickcontrols/ios/Dialog.qml b/src/quickcontrols/ios/Dialog.qml
index f8f400daf1..5cf877e1ad 100644
--- a/src/quickcontrols/ios/Dialog.qml
+++ b/src/quickcontrols/ios/Dialog.qml
@@ -39,8 +39,8 @@ T.Dialog {
source: IOS.url + "popup-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}
]
}
}
diff --git a/src/quickcontrols/ios/DialogButtonBox.qml b/src/quickcontrols/ios/DialogButtonBox.qml
index 4dd5fec2a5..3aacb32e70 100644
--- a/src/quickcontrols/ios/DialogButtonBox.qml
+++ b/src/quickcontrols/ios/DialogButtonBox.qml
@@ -50,8 +50,8 @@ T.DialogButtonBox {
NinePatchImageSelector on source {
states: [
{"pressed": delegate.down},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark},
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark},
]
}
}
@@ -66,8 +66,8 @@ T.DialogButtonBox {
source: IOS.url + "dialogbuttonbox-separator"
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}
]
}
}
diff --git a/src/quickcontrols/ios/Drawer.qml b/src/quickcontrols/ios/Drawer.qml
index 2ee955e7bc..c3a8f4cbc5 100644
--- a/src/quickcontrols/ios/Drawer.qml
+++ b/src/quickcontrols/ios/Drawer.qml
@@ -32,8 +32,8 @@ T.Drawer {
source: IOS.url + "drawer-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},
{"modal": control.modal}
]
}
diff --git a/src/quickcontrols/ios/Frame.qml b/src/quickcontrols/ios/Frame.qml
index 9179366808..066017d029 100644
--- a/src/quickcontrols/ios/Frame.qml
+++ b/src/quickcontrols/ios/Frame.qml
@@ -19,6 +19,6 @@ T.Frame {
background: Rectangle {
radius: 9
- color: Qt.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
+ color: Application.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
}
}
diff --git a/src/quickcontrols/ios/GroupBox.qml b/src/quickcontrols/ios/GroupBox.qml
index d3d14e7df8..79214b9933 100644
--- a/src/quickcontrols/ios/GroupBox.qml
+++ b/src/quickcontrols/ios/GroupBox.qml
@@ -36,6 +36,6 @@ T.GroupBox {
width: parent.width
height: parent.height - control.topPadding + control.bottomPadding
radius: 9
- color: Qt.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
+ color: Application.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
}
}
diff --git a/src/quickcontrols/ios/ItemDelegate.qml b/src/quickcontrols/ios/ItemDelegate.qml
index 2b27c86b26..c2bdc1f8ce 100644
--- a/src/quickcontrols/ios/ItemDelegate.qml
+++ b/src/quickcontrols/ios/ItemDelegate.qml
@@ -36,7 +36,7 @@ T.ItemDelegate {
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.down ? 0 : control.leftPadding + offset
@@ -46,8 +46,8 @@ T.ItemDelegate {
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},
{"pressed": control.down}
]
}
diff --git a/src/quickcontrols/ios/Menu.qml b/src/quickcontrols/ios/Menu.qml
index 752737f69b..7f65f1b239 100644
--- a/src/quickcontrols/ios/Menu.qml
+++ b/src/quickcontrols/ios/Menu.qml
@@ -52,8 +52,8 @@ T.Menu {
source: IOS.url + "menu-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}
]
}
}
diff --git a/src/quickcontrols/ios/MenuBar.qml b/src/quickcontrols/ios/MenuBar.qml
index b38fa12fcb..ae611667b4 100644
--- a/src/quickcontrols/ios/MenuBar.qml
+++ b/src/quickcontrols/ios/MenuBar.qml
@@ -24,7 +24,7 @@ T.MenuBar {
background: Rectangle {
opacity: 0.98
- color: Qt.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
+ color: Application.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
Rectangle {
height: 1
width: parent.width
diff --git a/src/quickcontrols/ios/MenuItem.qml b/src/quickcontrols/ios/MenuItem.qml
index 29c2562ca0..46aba80187 100644
--- a/src/quickcontrols/ios/MenuItem.qml
+++ b/src/quickcontrols/ios/MenuItem.qml
@@ -86,8 +86,8 @@ T.MenuItem {
states: [
{"edge": control.isFirstItem || control.isLastItem},
{"single": control.isSingleItem},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark},
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark},
{"pressed": control.down}
]
}
diff --git a/src/quickcontrols/ios/MenuSeparator.qml b/src/quickcontrols/ios/MenuSeparator.qml
index 790d8f0302..b709919f79 100644
--- a/src/quickcontrols/ios/MenuSeparator.qml
+++ b/src/quickcontrols/ios/MenuSeparator.qml
@@ -18,8 +18,8 @@ T.MenuSeparator {
source: IOS.url + "menuseparator-separator"
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}
]
}
}
diff --git a/src/quickcontrols/ios/PageIndicator.qml b/src/quickcontrols/ios/PageIndicator.qml
index 9a059b5df2..ca46a8b87c 100644
--- a/src/quickcontrols/ios/PageIndicator.qml
+++ b/src/quickcontrols/ios/PageIndicator.qml
@@ -18,8 +18,8 @@ T.PageIndicator {
source: IOS.url + "pageindicator-delegate"
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},
{"current": index === control.currentIndex},
]
}
diff --git a/src/quickcontrols/ios/Popup.qml b/src/quickcontrols/ios/Popup.qml
index ec76a90267..b614448997 100644
--- a/src/quickcontrols/ios/Popup.qml
+++ b/src/quickcontrols/ios/Popup.qml
@@ -35,8 +35,8 @@ T.Popup {
source: IOS.url + "popup-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}
]
}
}
diff --git a/src/quickcontrols/ios/ProgressBar.qml b/src/quickcontrols/ios/ProgressBar.qml
index 20cf4dc265..36adcb0ed8 100644
--- a/src/quickcontrols/ios/ProgressBar.qml
+++ b/src/quickcontrols/ios/ProgressBar.qml
@@ -31,8 +31,8 @@ T.ProgressBar {
source: IOS.url + "slider-progress"
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}
]
}
}
@@ -46,8 +46,8 @@ T.ProgressBar {
source: IOS.url + "slider-progress"
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}
]
}
@@ -72,8 +72,8 @@ T.ProgressBar {
width: control.background.width
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}
]
}
}
diff --git a/src/quickcontrols/ios/RadioButton.qml b/src/quickcontrols/ios/RadioButton.qml
index d107d9b490..d37c411e4e 100644
--- a/src/quickcontrols/ios/RadioButton.qml
+++ b/src/quickcontrols/ios/RadioButton.qml
@@ -26,8 +26,8 @@ T.RadioButton {
ImageSelector on source {
states: [
{"checked": control.checked},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark}
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark}
]
}
}
diff --git a/src/quickcontrols/ios/RadioDelegate.qml b/src/quickcontrols/ios/RadioDelegate.qml
index 91f74b9b4f..e772a57ef4 100644
--- a/src/quickcontrols/ios/RadioDelegate.qml
+++ b/src/quickcontrols/ios/RadioDelegate.qml
@@ -32,8 +32,8 @@ T.RadioDelegate {
source: IOS.url + "radiodelegate-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}
]
}
}
@@ -55,7 +55,7 @@ T.RadioDelegate {
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.down ? 0 : control.leftPadding + offset
@@ -65,8 +65,8 @@ T.RadioDelegate {
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},
{"pressed": control.down}
]
}
diff --git a/src/quickcontrols/ios/RangeSlider.qml b/src/quickcontrols/ios/RangeSlider.qml
index a8bca2eee9..109436ac0e 100644
--- a/src/quickcontrols/ios/RangeSlider.qml
+++ b/src/quickcontrols/ios/RangeSlider.qml
@@ -28,8 +28,8 @@ T.RangeSlider {
source: IOS.url + "slider-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},
]
}
}
@@ -47,8 +47,8 @@ T.RangeSlider {
source: IOS.url + "slider-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},
]
}
}
@@ -67,8 +67,8 @@ T.RangeSlider {
width: control.horizontal ? control.background.width : control.background.height
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},
]
}
@@ -81,8 +81,8 @@ T.RangeSlider {
source: IOS.url + "slider-progress"
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},
]
}
}
diff --git a/src/quickcontrols/ios/ScrollBar.qml b/src/quickcontrols/ios/ScrollBar.qml
index afd2e737b3..f8b7b1d0a6 100644
--- a/src/quickcontrols/ios/ScrollBar.qml
+++ b/src/quickcontrols/ios/ScrollBar.qml
@@ -24,8 +24,8 @@ T.ScrollBar {
source: IOS.url + "scrollindicator-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},
{"horizontal": control.horizontal},
{"vertical": control.vertical}
]
diff --git a/src/quickcontrols/ios/ScrollIndicator.qml b/src/quickcontrols/ios/ScrollIndicator.qml
index 5af880ca36..49d185b97d 100644
--- a/src/quickcontrols/ios/ScrollIndicator.qml
+++ b/src/quickcontrols/ios/ScrollIndicator.qml
@@ -18,8 +18,8 @@ T.ScrollIndicator {
source: IOS.url + "scrollindicator-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},
{"horizontal": control.horizontal},
{"vertical": control.vertical}
]
diff --git a/src/quickcontrols/ios/SelectionRectangle.qml b/src/quickcontrols/ios/SelectionRectangle.qml
index 06e540b411..99cbbe65c3 100644
--- a/src/quickcontrols/ios/SelectionRectangle.qml
+++ b/src/quickcontrols/ios/SelectionRectangle.qml
@@ -21,8 +21,8 @@ T.SelectionRectangle {
visible: SelectionRectangle.control.active
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}
]
}
}
diff --git a/src/quickcontrols/ios/Slider.qml b/src/quickcontrols/ios/Slider.qml
index fe76303e26..5cc3d126c5 100644
--- a/src/quickcontrols/ios/Slider.qml
+++ b/src/quickcontrols/ios/Slider.qml
@@ -26,8 +26,8 @@ T.Slider {
source: IOS.url + "slider-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}
]
}
@@ -47,8 +47,8 @@ T.Slider {
width: control.horizontal ? background.width : background.height
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},
]
}
@@ -59,8 +59,8 @@ T.Slider {
source: IOS.url + "slider-progress"
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},
]
}
}
diff --git a/src/quickcontrols/ios/SpinBox.qml b/src/quickcontrols/ios/SpinBox.qml
index 4168f6b43e..38f8385eaf 100644
--- a/src/quickcontrols/ios/SpinBox.qml
+++ b/src/quickcontrols/ios/SpinBox.qml
@@ -53,8 +53,8 @@ T.SpinBox {
states: [
{"up": true},
{"pressed": control.up.pressed},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark}
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark}
]
}
}
@@ -69,8 +69,8 @@ T.SpinBox {
states: [
{"down": true},
{"pressed": control.down.pressed},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark}
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark}
]
}
}
@@ -87,8 +87,8 @@ T.SpinBox {
y: (parent.height - height) / 2
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}
]
}
}
diff --git a/src/quickcontrols/ios/SwipeDelegate.qml b/src/quickcontrols/ios/SwipeDelegate.qml
index 9c6a4c3703..724de07959 100644
--- a/src/quickcontrols/ios/SwipeDelegate.qml
+++ b/src/quickcontrols/ios/SwipeDelegate.qml
@@ -39,7 +39,7 @@ T.SwipeDelegate {
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.down ? 0 : control.leftPadding + offset
@@ -49,8 +49,8 @@ T.SwipeDelegate {
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},
{"pressed": control.down}
]
}
diff --git a/src/quickcontrols/ios/Switch.qml b/src/quickcontrols/ios/Switch.qml
index 1b219cddf4..7a9b029fdf 100644
--- a/src/quickcontrols/ios/Switch.qml
+++ b/src/quickcontrols/ios/Switch.qml
@@ -32,8 +32,8 @@ T.Switch {
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}
]
}
@@ -53,8 +53,8 @@ T.Switch {
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}
]
}
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},
]
}
}
diff --git a/src/quickcontrols/ios/TabBar.qml b/src/quickcontrols/ios/TabBar.qml
index 0f42ea14e5..99434fa14d 100644
--- a/src/quickcontrols/ios/TabBar.qml
+++ b/src/quickcontrols/ios/TabBar.qml
@@ -32,7 +32,7 @@ T.TabBar {
background: Rectangle {
implicitHeight: 49
- color: Qt.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
+ color: Application.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
Rectangle {
height: 1
width: parent.width
diff --git a/src/quickcontrols/ios/ToolBar.qml b/src/quickcontrols/ios/ToolBar.qml
index 28b0029018..0c02403630 100644
--- a/src/quickcontrols/ios/ToolBar.qml
+++ b/src/quickcontrols/ios/ToolBar.qml
@@ -15,7 +15,7 @@ T.ToolBar {
background: Rectangle {
implicitHeight: 49
- color: Qt.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
+ color: Application.styleHints.colorScheme === Qt.Dark ? control.palette.light : control.palette.base
Rectangle {
height: 1
width: parent.width
diff --git a/src/quickcontrols/ios/ToolTip.qml b/src/quickcontrols/ios/ToolTip.qml
index 973e819503..8e6502da98 100644
--- a/src/quickcontrols/ios/ToolTip.qml
+++ b/src/quickcontrols/ios/ToolTip.qml
@@ -45,8 +45,8 @@ T.ToolTip {
source: IOS.url + "tooltip-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}
]
}
}
diff --git a/src/quickcontrols/ios/TreeViewDelegate.qml b/src/quickcontrols/ios/TreeViewDelegate.qml
index 5fc16bee07..7277011613 100644
--- a/src/quickcontrols/ios/TreeViewDelegate.qml
+++ b/src/quickcontrols/ios/TreeViewDelegate.qml
@@ -46,8 +46,8 @@ T.TreeViewDelegate {
source: IOS.url + "arrow-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}
]
}
}
@@ -55,15 +55,15 @@ T.TreeViewDelegate {
background: Rectangle {
implicitHeight: 44
- color: Qt.styleHints.colorScheme === Qt.Dark ? control.palette.dark : control.palette.base
+ color: Application.styleHints.colorScheme === Qt.Dark ? control.palette.dark : control.palette.base
NinePatchImage {
height: parent.height
width: parent.width
source: IOS.url + (control.highlighted ? "itemdelegate-background-pressed" : "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}
]
}
}
diff --git a/src/quickcontrols/ios/impl/DialogButtonBoxDelegate.qml b/src/quickcontrols/ios/impl/DialogButtonBoxDelegate.qml
index ec506f6c06..1a0bc9d12f 100644
--- a/src/quickcontrols/ios/impl/DialogButtonBoxDelegate.qml
+++ b/src/quickcontrols/ios/impl/DialogButtonBoxDelegate.qml
@@ -20,7 +20,7 @@ Button {
flat: true
contentItem: IconLabel {
- readonly property var redColor: Qt.styleHints.colorScheme === Qt.Light ? "#ff3b30" : "#ff453a"
+ readonly property var redColor: Application.styleHints.colorScheme === Qt.Light ? "#ff3b30" : "#ff453a"
text: delegate.text
font: delegate.font
spacing: delegate.spacing
@@ -56,8 +56,8 @@ Button {
{"vertical": delegate.hasVerticalLayout},
{"last": delegate.hasVerticalLayout && delegate.isLastItem},
{"pressed": delegate.down},
- {"light": Qt.styleHints.colorScheme === Qt.Light},
- {"dark": Qt.styleHints.colorScheme === Qt.Dark},
+ {"light": Application.styleHints.colorScheme === Qt.Light},
+ {"dark": Application.styleHints.colorScheme === Qt.Dark},
]
}
}