aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-ui_views_style_platform__style.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-ui_views_style_platform__style.cc')
-rw-r--r--devel/electron37/files/patch-ui_views_style_platform__style.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-ui_views_style_platform__style.cc b/devel/electron37/files/patch-ui_views_style_platform__style.cc
new file mode 100644
index 000000000000..1027344812ef
--- /dev/null
+++ b/devel/electron37/files/patch-ui_views_style_platform__style.cc
@@ -0,0 +1,20 @@
+--- ui/views/style/platform_style.cc.orig 2025-04-22 20:15:27 UTC
++++ ui/views/style/platform_style.cc
+@@ -23,7 +23,7 @@
+ #include "ui/views/controls/focusable_border.h"
+ #include "ui/views/controls/scrollbar/scroll_bar_views.h"
+
+-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ #include "ui/views/controls/scrollbar/overlay_scroll_bar.h"
+ #endif
+ #endif
+@@ -35,7 +35,7 @@ std::unique_ptr<ScrollBar> PlatformStyle::CreateScroll
+ // static
+ std::unique_ptr<ScrollBar> PlatformStyle::CreateScrollBar(
+ ScrollBar::Orientation orientation) {
+-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ return std::make_unique<OverlayScrollBar>(orientation);
+ #else
+ return std::make_unique<ScrollBarViews>(orientation);