Skip to content

Commit

Permalink
Transparency types on macos now update when the preference change
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-balades committed Feb 27, 2025
1 parent a409016 commit 09ce9f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/modules/libpref/init/StaticPrefList-yaml.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml
index a9863858f9a28b2c633edd9689d4379203eef1e6..a0c121d934313f272ade1061146fbc4b96e2ddda 100644
index a9863858f9a28b2c633edd9689d4379203eef1e6..7ac24baf70727a2a9be428c6f98763f312a0969b 100644
--- a/modules/libpref/init/StaticPrefList.yaml
+++ b/modules/libpref/init/StaticPrefList.yaml
@@ -18305,7 +18305,7 @@
Expand All @@ -11,7 +11,7 @@ index a9863858f9a28b2c633edd9689d4379203eef1e6..a0c121d934313f272ade1061146fbc4b
mirror: once
#endif

@@ -18418,6 +18418,25 @@
@@ -18418,6 +18418,26 @@
mirror: always
#endif

Expand All @@ -24,8 +24,9 @@ index a9863858f9a28b2c633edd9689d4379203eef1e6..a0c121d934313f272ade1061146fbc4b
+#ifdef XP_MACOSX
+- name: zen.widget.macos.window-material
+ type: uint32_t
+ value: 0
+ mirror: once
+ value: 1
+ mirror: always
+#endif
+
+#ifdef XP_WIN
+- name: zen.widget.windows.acrylic
Expand Down
10 changes: 9 additions & 1 deletion src/widget/cocoa/VibrancyManager-mm.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/widget/cocoa/VibrancyManager.mm b/widget/cocoa/VibrancyManager.mm
index 849b62c9976a7bc5fee35e074e54c8f556ed9c38..92ddc9022055f518cb371d64e8e644c4b3ada798 100644
index 849b62c9976a7bc5fee35e074e54c8f556ed9c38..77708aec7c95bffa844596ba1adf1869c8583e73 100644
--- a/widget/cocoa/VibrancyManager.mm
+++ b/widget/cocoa/VibrancyManager.mm
@@ -13,6 +13,7 @@
Expand Down Expand Up @@ -35,3 +35,11 @@ index 849b62c9976a7bc5fee35e074e54c8f556ed9c38..92ddc9022055f518cb371d64e8e644c4
}
}

@@ -88,6 +105,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,
+ "widget.macos.titlebar-blend-mode.behind-window"_ns,
};

VibrancyManager::VibrancyManager(const nsChildView& aCoordinateConverter,

0 comments on commit 09ce9f3

Please sign in to comment.