blob: 2a0acad59442d3c23776fc134dd11b14f983037c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- ui/views/widget/widget.cc.orig 2025-11-06 10:11:34 UTC
+++ ui/views/widget/widget.cc
@@ -64,7 +64,7 @@
#include "ui/views/widget/widget_removals_observer.h"
#include "ui/views/window/dialog_delegate.h"
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
#include "ui/linux/linux_ui.h"
#endif
@@ -2519,7 +2519,7 @@ const ui::NativeTheme* Widget::GetNativeTheme() const
return parent_->GetNativeTheme();
}
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
if (auto* linux_ui_theme =
ui::LinuxUiTheme::GetForWindow(GetNativeWindow())) {
return linux_ui_theme->GetNativeTheme();
|