21 lines
645 B
C++
21 lines
645 B
C++
--- ui/views/widget/widget.cc.orig 2026-10-01 10:49:30 UTC
|
|
+++ ui/views/widget/widget.cc
|
|
@@ -67,7 +67,7 @@
|
|
#include "ui/views/window/dialog_delegate.h"
|
|
#include "ui/wm/core/window_properties.h"
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
#include "ui/linux/linux_ui.h"
|
|
#endif
|
|
|
|
@@ -2664,7 +2664,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();
|