diff --git a/src/core/stylesheetloader.cpp b/src/core/stylesheetloader.cpp index 4515ceaa0..fdfb56997 100644 --- a/src/core/stylesheetloader.cpp +++ b/src/core/stylesheetloader.cpp @@ -31,7 +31,6 @@ #include #include #include -#include #include #include @@ -80,21 +79,6 @@ void StyleSheetLoader::UpdateStyleSheet(QWidget *widget, SharedPtrpalette()); - { - QColor alt = p.color(QPalette::AlternateBase); -#ifdef Q_OS_MACOS - if (alt.lightness() > 180) { - alt.setAlpha(130); - } - else { - alt.setAlpha(16); - } -#else - alt.setAlpha(130); -#endif - stylesheet.replace("%palette-alternate-base"_L1, QStringLiteral("rgba(%1,%2,%3,%4)").arg(alt.red()).arg(alt.green()).arg(alt.blue()).arg(alt.alpha())); - } - ReplaceColor(&stylesheet, u"Window"_s, p, QPalette::Window); ReplaceColor(&stylesheet, u"Background"_s, p, QPalette::Window); ReplaceColor(&stylesheet, u"WindowText"_s, p, QPalette::WindowText);