Commit 07e6f86f authored by Jennifer Apacible's avatar Jennifer Apacible Committed by Commit Bot

[Picture in Picture] Adjust size of close button.

This change makes the button a little smaller with less buffer white
space around it.

Bug: None
Change-Id: I6bb7bb6e2ee6f773c7c85019055abbc694a5d312
Reviewed-on: https://chromium-review.googlesource.com/1075852Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
Commit-Queue: apacible <apacible@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562577}
parent 81613824
......@@ -35,7 +35,7 @@ constexpr gfx::Size kMinWindowSize = gfx::Size(144, 100);
const int kBorderThickness = 5;
const int kResizeAreaCornerSize = 16;
constexpr gfx::Size kCloseButtonSize = gfx::Size(42, 42);
constexpr gfx::Size kCloseButtonSize = gfx::Size(36, 36);
constexpr gfx::Size kPlayPauseButtonSize = gfx::Size(90, 90);
const int kCloseButtonMargin = 8;
......@@ -216,7 +216,8 @@ void OverlayWindowViews::SetUpViews() {
views::ImageButton::ALIGN_MIDDLE);
close_controls_view_->SetImage(
views::Button::STATE_NORMAL,
gfx::CreateVectorIcon(views::kIcCloseIcon, kCloseButtonSize.width() / 2,
gfx::CreateVectorIcon(views::kIcCloseIcon,
kCloseButtonSize.width() * 2 / 3,
kControlIconColor));
close_controls_view_->SetBackgroundImageAlignment(
views::ImageButton::ALIGN_LEFT, views::ImageButton::ALIGN_TOP);
......
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