From 220415f6985d12ab4ce16218ea64a4055c187ce3 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Thu, 27 Feb 2025 22:26:45 +0100 Subject: [PATCH] Fixed vibrancy not updating on macos when changing the pref --- src/widget/cocoa/VibrancyManager-mm.patch | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/widget/cocoa/VibrancyManager-mm.patch b/src/widget/cocoa/VibrancyManager-mm.patch index 03566fe2e..a550079b7 100644 --- a/src/widget/cocoa/VibrancyManager-mm.patch +++ b/src/widget/cocoa/VibrancyManager-mm.patch @@ -1,5 +1,5 @@ diff --git a/widget/cocoa/VibrancyManager.mm b/widget/cocoa/VibrancyManager.mm -index 849b62c9976a7bc5fee35e074e54c8f556ed9c38..e4678e8340f0c56f49d5b6eaaf3fe4419b695946 100644 +index 849b62c9976a7bc5fee35e074e54c8f556ed9c38..fcf097aff606f0172ca54fbe39e081fe1d43c587 100644 --- a/widget/cocoa/VibrancyManager.mm +++ b/widget/cocoa/VibrancyManager.mm @@ -13,6 +13,7 @@ @@ -35,7 +35,15 @@ index 849b62c9976a7bc5fee35e074e54c8f556ed9c38..e4678e8340f0c56f49d5b6eaaf3fe441 } } -@@ -88,6 +105,7 @@ static void PrefChanged(const char* aPref, void* aClosure) { +@@ -78,6 +95,7 @@ - (NSView*)hitTest:(NSPoint)aPoint { + + - (void)prefChanged { + self.blendingMode = VisualEffectBlendingModeForVibrancyType(mType); ++ self.material = VisualEffectMaterialForVibrancyType(mType); + } + @end + +@@ -88,6 +106,7 @@ static void PrefChanged(const char* aPref, void* aClosure) { static constexpr nsLiteralCString kObservedPrefs[] = { "widget.macos.sidebar-blend-mode.behind-window"_ns, "widget.macos.titlebar-blend-mode.behind-window"_ns,