Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@@ -147,10 +147,11 @@ void ViewsOverlayControls::OnButtonPressed(CefRefPtr<CefButton> button) {
window_->Minimize();
break;
case ViewsOverlayControls::Command::kMaximize:
if (window_->IsMaximized())
if (window_->IsMaximized()) {
window_->Restore();
else
} else {
window_->Maximize();
}
break;
case ViewsOverlayControls::Command::kClose:
window_->Close();
@@ -163,8 +164,9 @@ void ViewsOverlayControls::OnButtonPressed(CefRefPtr<CefButton> button) {
button->SetInkDropEnabled(false);
button->SetInkDropEnabled(true);
if (command == Command::kMaximize)
if (command == Command::kMaximize) {
MaybeUpdateMaximizeButton();
}
}
CefRefPtr<CefLabelButton> ViewsOverlayControls::CreateButton(Command command) {
@@ -178,8 +180,9 @@ CefRefPtr<CefLabelButton> ViewsOverlayControls::CreateButton(Command command) {
}
void ViewsOverlayControls::MaybeUpdateMaximizeButton() {
if (window_->IsMaximized() == window_maximized_)
if (window_->IsMaximized() == window_maximized_) {
return;
}
window_maximized_ = !window_maximized_;
auto max_button = panel_->GetChildViewAt(1);