mirror of
https://git.freebsd.org/ports.git
synced 2025-07-06 20:09:14 -04:00
20 lines
656 B
C++
20 lines
656 B
C++
--- ui/views/widget/widget.cc.orig 2023-01-11 09:17:16 UTC
|
|
+++ ui/views/widget/widget.cc
|
|
@@ -52,7 +52,7 @@
|
|
#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
|
|
|
|
@@ -1991,7 +1991,7 @@ const ui::NativeTheme* Widget::GetNativeTheme() const
|
|
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
|