fix https://github.com/brave/brave-browser/issues/27880 New separator type(BOTH_SIDE_PADDED_SEPARATOR) is introduced to have padding on both side.
13 lines
620 B
Diff
13 lines
620 B
Diff
diff --git a/ui/views/controls/menu/menu_separator.cc b/ui/views/controls/menu/menu_separator.cc
|
|
index be7ca4059bc2d7f78419dbf863fdb7c74070e9dc..6391ae9d86b0d66cca37d98f71506c2733b12edd 100644
|
|
--- a/ui/views/controls/menu/menu_separator.cc
|
|
+++ b/ui/views/controls/menu/menu_separator.cc
|
|
@@ -43,6 +43,7 @@ void MenuSeparator::OnPaint(gfx::Canvas* canvas) {
|
|
if (type_ == ui::PADDED_SEPARATOR)
|
|
paint_rect.Inset(
|
|
gfx::Insets::TLBR(0, menu_config.padded_separator_left_margin, 0, 0));
|
|
+ BRAVE_MENU_SEPARATOR_ON_PAINT
|
|
else if (menu_config.use_outer_border)
|
|
paint_rect.Inset(gfx::Insets::VH(0, 1));
|
|
|