mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
helium/ui/zen: fix side panel radius when VTS is floating
now side panel uses the frame radius when VTS is floating, like it's supposed to
This commit is contained in:
@@ -2413,3 +2413,23 @@
|
||||
ToastId::kImageCopied,
|
||||
ToastSpecification::Builder(features::IsRoundedIconsEnabled()
|
||||
? kContentCopyIcon
|
||||
--- a/chrome/browser/ui/views/side_panel/side_panel.cc
|
||||
+++ b/chrome/browser/ui/views/side_panel/side_panel.cc
|
||||
@@ -83,12 +83,15 @@ gfx::RoundedCornersF GetContentRoundedCo
|
||||
side_panel->GetWidget() && side_panel->GetWidget()->IsFullscreen();
|
||||
const int window_edge_radius =
|
||||
is_fullscreen ? generic_radius : GetPaddedFrameRadius();
|
||||
- const bool vertical_tabstrip_on_panel_side =
|
||||
+ const bool vertical_tabstrip_touches_window_edge =
|
||||
browser_view->ShouldDrawVerticalTabStrip() &&
|
||||
+ (!browser_view->IsZenModeEnabledForLayout() ||
|
||||
+ browser_view->IsZenModeSideChromePinned()) &&
|
||||
(browser_view->IsVerticalTabStripRightAligned() ==
|
||||
side_panel->IsRightAligned());
|
||||
const int lower_window_edge_radius =
|
||||
- !vertical_tabstrip_on_panel_side ? window_edge_radius : generic_radius;
|
||||
+ vertical_tabstrip_touches_window_edge ? generic_radius
|
||||
+ : window_edge_radius;
|
||||
|
||||
return side_panel->IsRightAligned()
|
||||
? gfx::RoundedCornersF(generic_radius, generic_radius,
|
||||
|
||||
Reference in New Issue
Block a user