mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47:35 +00:00
WindowServer: Rearrange minimize/maximize/close buttons (in that order.)
This commit is contained in:
parent
641893104a
commit
a20ce4d2b8
1 changed files with 4 additions and 4 deletions
|
@ -94,14 +94,14 @@ WSWindowFrame::WSWindowFrame(WSWindow& window)
|
|||
m_window.event(close_request);
|
||||
}));
|
||||
|
||||
m_buttons.append(make<WSButton>(*this, *s_minimize_button_bitmap, [this] (auto&) {
|
||||
m_window.set_minimized(true);
|
||||
}));
|
||||
|
||||
m_buttons.append(make<WSButton>(*this, *s_maximize_button_bitmap, [this] (auto& button) {
|
||||
m_window.set_maximized(!m_window.is_maximized());
|
||||
button.set_bitmap(m_window.is_maximized() ? *s_unmaximize_button_bitmap : *s_maximize_button_bitmap);
|
||||
}));
|
||||
|
||||
m_buttons.append(make<WSButton>(*this, *s_minimize_button_bitmap, [this] (auto&) {
|
||||
m_window.set_minimized(true);
|
||||
}));
|
||||
}
|
||||
|
||||
WSWindowFrame::~WSWindowFrame()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue