aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_browser_themes_theme__helper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-chrome_browser_themes_theme__helper.cc')
-rw-r--r--www/chromium/files/patch-chrome_browser_themes_theme__helper.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/chromium/files/patch-chrome_browser_themes_theme__helper.cc b/www/chromium/files/patch-chrome_browser_themes_theme__helper.cc
new file mode 100644
index 000000000000..8aa7e5d70afe
--- /dev/null
+++ b/www/chromium/files/patch-chrome_browser_themes_theme__helper.cc
@@ -0,0 +1,20 @@
+--- chrome/browser/themes/theme_helper.cc.orig 2022-06-17 14:20:10 UTC
++++ chrome/browser/themes/theme_helper.cc
+@@ -24,7 +24,7 @@
+ #include "ui/native_theme/common_theme.h"
+ #include "ui/native_theme/native_theme.h"
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ #include "ui/views/linux_ui/linux_ui.h"
+ #endif
+
+@@ -494,7 +494,7 @@ bool ThemeHelper::UseDarkModeColors(const CustomThemeS
+
+ ui::NativeTheme const* native_theme =
+ ui::NativeTheme::GetInstanceForNativeUi();
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ if (const auto* linux_ui = views::LinuxUI::instance()) {
+ // We rely on the fact that the system theme is in use iff `theme_supplier`
+ // is non-null, but this is cheating. In the future this might not hold