SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
www/chromium/patches/patch-ui_views_widget_widget_cc
Normal file
21
www/chromium/patches/patch-ui_views_widget_widget_cc
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: ui/views/widget/widget.cc
|
||||
--- ui/views/widget/widget.cc.orig
|
||||
+++ ui/views/widget/widget.cc
|
||||
@@ -53,7 +53,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
|
||||
|
||||
@@ -2048,7 +2048,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
|
Loading…
Add table
Add a link
Reference in a new issue