2023-08-16 22:26:55 +00:00
|
|
|
Index: ui/views/widget/widget.cc
|
|
|
|
--- ui/views/widget/widget.cc.orig
|
|
|
|
+++ ui/views/widget/widget.cc
|
2023-08-18 18:38:43 +00:00
|
|
|
@@ -54,7 +54,7 @@
|
2023-08-16 22:26:55 +00:00
|
|
|
#include "ui/views/window/custom_frame_view.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
|
|
|
|
|
2023-09-14 00:49:35 +00:00
|
|
|
@@ -2026,7 +2026,7 @@ const ui::NativeTheme* Widget::GetNativeTheme() const
|
2023-08-16 22:26:55 +00:00
|
|
|
if (parent_)
|
|
|
|
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();
|
|
|
|
#endif
|