summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiostheme.mm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-02-09 14:16:05 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-02-13 17:19:23 +0100
commit32749c913b32e89e2027227233794f2296166cc6 (patch)
tree0daec9a562b3a1f5bc59a0a9cc556b193a0f8593 /src/plugins/platforms/ios/qiostheme.mm
parent0c6aa4c8c2f05e9172a0f1f5852277a01e54c7c2 (diff)
Rename Qt::Appearance to Qt::ColorScheme
Based on discussions in the 6.5 API review, where we concluded that 'appearance' is too general. Instead, we follow the CSS standard and use the term 'color scheme'. Pick-to: 6.5 Change-Id: I8ceaf4138ecadff5ccd962480e8e5beb39b556ec Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Jonas Kvinge <jonas@jkvinge.net> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/plugins/platforms/ios/qiostheme.mm')
-rw-r--r--src/plugins/platforms/ios/qiostheme.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/ios/qiostheme.mm b/src/plugins/platforms/ios/qiostheme.mm
index 2c40149813..d1356ab8f7 100644
--- a/src/plugins/platforms/ios/qiostheme.mm
+++ b/src/plugins/platforms/ios/qiostheme.mm
@@ -142,7 +142,7 @@ QVariant QIOSTheme::themeHint(ThemeHint hint) const
}
}
-Qt::Appearance QIOSTheme::appearance() const
+Qt::ColorScheme QIOSTheme::colorScheme() const
{
UIUserInterfaceStyle appearance = UIUserInterfaceStyleUnspecified;
// Set the appearance based on the UIWindow
@@ -153,8 +153,8 @@ Qt::Appearance QIOSTheme::appearance() const
appearance = UIScreen.mainScreen.traitCollection.userInterfaceStyle;
}
return appearance == UIUserInterfaceStyleDark
- ? Qt::Appearance::Dark
- : Qt::Appearance::Light;
+ ? Qt::ColorScheme::Dark
+ : Qt::ColorScheme::Light;
}
const QFont *QIOSTheme::font(Font type) const