aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/fusion/qquickfusionstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/fusion/qquickfusionstyle.cpp')
-rw-r--r--src/imports/controls/fusion/qquickfusionstyle.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/imports/controls/fusion/qquickfusionstyle.cpp b/src/imports/controls/fusion/qquickfusionstyle.cpp
index cb3889c8..98c1894f 100644
--- a/src/imports/controls/fusion/qquickfusionstyle.cpp
+++ b/src/imports/controls/fusion/qquickfusionstyle.cpp
@@ -43,21 +43,6 @@
QT_BEGIN_NAMESPACE
-// On mac we want a standard blue color used when the system palette is used
-static bool isMacSystemPalette(const QPalette &palette)
-{
- Q_UNUSED(palette);
-#if defined(Q_OS_MACOS)
- const QPalette *themePalette = QGuiApplicationPrivate::platformTheme()->palette();
- if (themePalette && themePalette->color(QPalette::Normal, QPalette::Highlight) ==
- palette.color(QPalette::Normal, QPalette::Highlight) &&
- themePalette->color(QPalette::Normal, QPalette::HighlightedText) ==
- palette.color(QPalette::Normal, QPalette::HighlightedText))
- return true;
-#endif
- return false;
-}
-
QQuickFusionStyle::QQuickFusionStyle(QObject *parent)
: QObject(parent)
{
@@ -90,8 +75,6 @@ QColor QQuickFusionStyle::highlight(const QPalette &palette)
QColor QQuickFusionStyle::highlightedText(const QPalette &palette)
{
- if (isMacSystemPalette(palette))
- return Qt::white;
return palette.color(QPalette::HighlightedText);
}