mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
helium-ui: adjust immersive tab strip padding
This commit is contained in:
@@ -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 {
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user