Skip to content

Truly independent web browser

UI/Qt: Connect the contrast preference slot directly

Callum Law98286b65bf86
diff --git a/UI/Qt/SystemAppearance.cpp b/UI/Qt/SystemAppearance.cpp
index 1c03bf5767f..a6ea4d80776 100644
--- a/UI/Qt/SystemAppearance.cpp
+++ b/UI/Qt/SystemAppearance.cpp
@@ -59,9 +59,7 @@ SystemAppearance::SystemAppearance()
}
});
// The chrome's colors depend on the contrast preference, but changing it does not change the application palette.
- QObject::connect(QGuiApplication::styleHints()->accessibility(), &QAccessibilityHints::contrastPreferenceChanged, this, [] {
- notify_widgets_of_palette_change();
- });
+ QObject::connect(QGuiApplication::styleHints()->accessibility(), &QAccessibilityHints::contrastPreferenceChanged, this, notify_widgets_of_palette_change);
observe_platform_changes();
}