Skip to content

Commit

Permalink
Add background when invalidating as well
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Sep 6, 2022
1 parent 835a4f3 commit f1882c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/browser/ui/views/win_frame_view.cc
Expand Up @@ -19,6 +19,7 @@
#include "ui/display/win/dpi.h"
#include "ui/display/win/screen_win.h"
#include "ui/gfx/geometry/dip_util.h"
#include "ui/views/background.h"
#include "ui/views/widget/widget.h"
#include "ui/views/win/hwnd_util.h"

Expand Down Expand Up @@ -58,6 +59,8 @@ void WinFrameView::InvalidateCaptionButtons() {
if (!caption_button_container_)
return;

caption_button_container_->SetBackground(
views::CreateSolidBackground(window()->overlay_button_color()));
caption_button_container_->InvalidateLayout();
caption_button_container_->SchedulePaint();
}
Expand Down

0 comments on commit f1882c4

Please sign in to comment.