Skip to content

Commit

Permalink
fix: Set background for WCO container
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Sep 2, 2022
1 parent 98c0fa1 commit 835a4f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/browser/ui/views/win_caption_button_container.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "shell/browser/ui/views/win_frame_view.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/strings/grit/ui_strings.h"
#include "ui/views/background.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/view_class_properties.h"

Expand Down Expand Up @@ -128,6 +129,8 @@ void WinCaptionButtonContainer::AddedToWidget() {
UpdateButtons();

if (frame_view_->window()->IsWindowControlsOverlayEnabled()) {
SetBackground(views::CreateSolidBackground(
frame_view_->window()->overlay_button_color()));
SetPaintToLayer();
}
}
Expand Down

0 comments on commit 835a4f3

Please sign in to comment.