Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ label::after {
background-image: url('../static/minimize.svg');
}

.icon--maximize {
background-image: url('../static/maximize.svg');
}

.icon--close {
background-image: url('../static/close.svg');
}
Expand Down
1 change: 1 addition & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ <h1 class="modal__title">More</h1>
<h1 class="app__title">Caligator</h1>
<div class="app__controls">
<i id="app--minimize" class="icon icon--minimize"></i>
<i id="app--maximize" class="icon icon--maximize"></i>
<i id="app--close" class="icon icon--close"></i>
</div>
</header>
Expand Down
7 changes: 7 additions & 0 deletions app/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,13 @@ const appPopup = document.querySelectorAll('.modal')[0];
window.minimize();
});

document
.querySelector('#app--maximize')
.addEventListener('click', () => {
const window = BrowserWindow.getFocusedWindow();
window.maximize();
});

document.querySelector('#app--close').addEventListener('click', () => {
const window = BrowserWindow.getFocusedWindow();
window.close();
Expand Down
3 changes: 3 additions & 0 deletions static/maximize.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.