diff --git a/patches/helium-ui/adjust-immersive-padding.patch b/patches/helium-ui/adjust-immersive-padding.patch new file mode 100644 index 00000000..2d6a829e --- /dev/null +++ b/patches/helium-ui/adjust-immersive-padding.patch @@ -0,0 +1,25 @@ +--- a/chrome/browser/ui/views/frame/immersive_mode_controller_mac.mm ++++ b/chrome/browser/ui/views/frame/immersive_mode_controller_mac.mm +@@ -41,7 +41,7 @@ namespace { + // values in BrowserNonClientFrameViewMac::GetCaptionButtonInsets don't account + // for a window with an NSToolbar. + constexpr int kTrafficLightsWidth = 62; +-constexpr int kTabAlignmentInset = 4; ++constexpr int kTabAlignmentInset = 8; + + class ImmersiveModeFocusSearchMac : public views::FocusSearch { + public: +@@ -228,11 +228,9 @@ void ImmersiveModeControllerMac::SetEnab + gfx::Insets ImmersiveModeControllerMac::GetTabStripRegionViewInsets() { + int right_left_inset = kTabAlignmentInset + kTrafficLightsWidth; + +- // Without this +1 top inset the tabs sit 1px too high. I assume this is +- // because in fullscreen there is no resize handle. + return browser_view_->frame()->GetFrameView()->CaptionButtonsOnLeadingEdge() +- ? gfx::Insets::TLBR(1, right_left_inset, 0, 0) +- : gfx::Insets::TLBR(1, 0, 0, right_left_inset); ++ ? gfx::Insets::TLBR(0, right_left_inset, 0, 0) ++ : gfx::Insets::TLBR(0, 0, 0, right_left_inset); + } + + bool ImmersiveModeControllerMac::IsEnabled() const { diff --git a/patches/series b/patches/series index 063ea7b7..e9a0e2dd 100644 --- a/patches/series +++ b/patches/series @@ -135,3 +135,4 @@ helium-ui/toolbar-style.patch helium-ui/omnibox-style.patch helium-ui/app-menu-style.patch helium-ui/fix-customize-side-panel.patch +helium-ui/adjust-immersive-padding.patch