From 7371d42e97f2a1fd208de41f2616b07573e8d5a0 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Wed, 11 Dec 2024 00:52:34 +0100 Subject: [PATCH] Tried to fix weird background when windows 11 accent color titlebar is enabled --- src/mozglue/misc/PreXULSkeletonUI-cpp.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/mozglue/misc/PreXULSkeletonUI-cpp.patch diff --git a/src/mozglue/misc/PreXULSkeletonUI-cpp.patch b/src/mozglue/misc/PreXULSkeletonUI-cpp.patch new file mode 100644 index 000000000..7128248cc --- /dev/null +++ b/src/mozglue/misc/PreXULSkeletonUI-cpp.patch @@ -0,0 +1,13 @@ +diff --git a/mozglue/misc/PreXULSkeletonUI.cpp b/mozglue/misc/PreXULSkeletonUI.cpp +index 416dce0f1f09b2f567ddf4fdab2beab54491a394..f2ffaf839fab724117500a61ce52618c99987277 100644 +--- a/mozglue/misc/PreXULSkeletonUI.cpp ++++ b/mozglue/misc/PreXULSkeletonUI.cpp +@@ -862,7 +862,7 @@ Result DrawSkeletonUI( + ColorRect toolbar = {}; + // In the vertical tabs case the main toolbar is in the titlebar: + toolbar.color = +- verticalTabs ? currentTheme.titlebarColor : currentTheme.backgroundColor; ++ true ? currentTheme.titlebarColor : currentTheme.backgroundColor; + toolbar.x = 0; + toolbar.y = tabBar.y + tabBarHeight; + toolbar.width = sWindowWidth;