diff options
| author | Doris Verria <doris.verria@qt.io> | 2022-07-20 13:29:33 +0200 |
|---|---|---|
| committer | Doris Verria <doris.verria@qt.io> | 2022-07-22 12:30:58 +0200 |
| commit | 9ab8117aaf28c299d6d0167c7169289d0a93cf6b (patch) | |
| tree | e52a7fdf2661a14e626bdfb1d98cb940943cbd0a /src | |
| parent | c02b0e529a3266cce2f7d852deca7774402b236e (diff) | |
iOS Style: Fix button icon color
Set the color accordingly depending if it's a flat button or not.
Pick-to: 6.4
Change-Id: Ic015906043afeda08c5ad9a65670b89ec36057e1
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
| -rw-r--r-- | src/quickcontrols2/ios/Button.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quickcontrols2/ios/Button.qml b/src/quickcontrols2/ios/Button.qml index 0a5fdd9dde..95522be53f 100644 --- a/src/quickcontrols2/ios/Button.qml +++ b/src/quickcontrols2/ios/Button.qml @@ -21,7 +21,9 @@ T.Button { icon.width: 17 icon.height: 17 - icon.color: control.palette.buttonText + icon.color: control.flat ? (control.enabled ? (control.down ? control.palette.highlight : control.palette.button) + : control.palette.mid) + : control.palette.buttonText contentItem: IconLabel { spacing: control.spacing |
