Commit ba30493e authored by Bret Sepulveda's avatar Bret Sepulveda Committed by Commit Bot

Revert increased corner radius and shadows for Refresh.

This caused some issues and we don't have time to address them for M69.
For example: crbug.com/849802, crbug.com/851852, crbug.com/848164.

Bug: 822075
Change-Id: I2b318ea6a9ff0b05120b21262088f6fbe2c3df10
Reviewed-on: https://chromium-review.googlesource.com/1098376Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Bret Sepulveda <bsep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#566931}
parent 3fd070d9
......@@ -146,11 +146,6 @@ NonClientFrameView* BubbleDialogDelegateView::CreateNonClientFrameView(
adjusted_arrow = BubbleBorder::horizontal_mirror(adjusted_arrow);
std::unique_ptr<BubbleBorder> border =
std::make_unique<BubbleBorder>(adjusted_arrow, shadow(), color());
if (ui::MaterialDesignController::IsSecondaryUiMaterial()) {
border->SetCornerRadius(provider->GetCornerRadiusMetric(EMPHASIS_HIGH));
border->set_md_shadow_elevation(
provider->GetShadowElevationMetric(EMPHASIS_HIGH));
}
frame->SetBubbleBorder(std::move(border));
return frame;
}
......
......@@ -213,11 +213,6 @@ NonClientFrameView* DialogDelegate::CreateDialogFrameView(Widget* widget) {
std::unique_ptr<BubbleBorder> border = std::make_unique<BubbleBorder>(
BubbleBorder::FLOAT, kShadow, gfx::kPlaceholderColor);
border->set_use_theme_background_color(true);
if (ui::MaterialDesignController::IsSecondaryUiMaterial()) {
border->SetCornerRadius(provider->GetCornerRadiusMetric(EMPHASIS_HIGH));
border->set_md_shadow_elevation(
provider->GetShadowElevationMetric(EMPHASIS_HIGH));
}
frame->SetBubbleBorder(std::move(border));
DialogDelegate* delegate = widget->widget_delegate()->AsDialogDelegate();
if (delegate)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment