Commit 4101a17a authored by François Beaufort's avatar François Beaufort Committed by Commit Bot

Fix Picture-in-Picture window close icon.

This make sures the close icon in the Picture-in-Picture window is
centered properly.

Screenshot: https://imgur.com/a/3n6fNDW

Bug: 836389
Change-Id: Id3418ad003440ab60c28ba748096237b853d2c61
Reviewed-on: https://chromium-review.googlesource.com/1109937Reviewed-by: default avatarapacible <apacible@chromium.org>
Commit-Queue: François Beaufort <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/master@{#569572}
parent 9e39ecde
...@@ -309,7 +309,7 @@ void OverlayWindowViews::UpdateCloseControlsSize() { ...@@ -309,7 +309,7 @@ void OverlayWindowViews::UpdateCloseControlsSize() {
close_controls_view_->SetImage( close_controls_view_->SetImage(
views::Button::STATE_NORMAL, views::Button::STATE_NORMAL,
gfx::CreateVectorIcon(views::kIcCloseIcon, gfx::CreateVectorIcon(views::kIcCloseIcon,
close_button_size_.width() * 2 / 3, std::round(close_button_size_.width() * 2.0 / 3.0),
kControlIconColor)); kControlIconColor));
const gfx::ImageSkia close_background = const gfx::ImageSkia close_background =
gfx::CreateVectorIcon(kPictureInPictureControlBackgroundIcon, gfx::CreateVectorIcon(kPictureInPictureControlBackgroundIcon,
......
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