From 576b81148c6e2cd16ed74f93cb447adcd0ece630 Mon Sep 17 00:00:00 2001 From: Jui Date: Thu, 1 Oct 2020 19:03:58 +0530 Subject: [PATCH] Added icon to maximize the window --- app/index.css | 4 ++++ app/index.html | 1 + app/script.js | 7 +++++++ static/maximize.svg | 3 +++ 4 files changed, 15 insertions(+) create mode 100644 static/maximize.svg diff --git a/app/index.css b/app/index.css index 3034331..b2966b9 100644 --- a/app/index.css +++ b/app/index.css @@ -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'); } diff --git a/app/index.html b/app/index.html index 4286ad8..2064111 100644 --- a/app/index.html +++ b/app/index.html @@ -72,6 +72,7 @@

More

Caligator

+
diff --git a/app/script.js b/app/script.js index cd06b77..e5878f6 100644 --- a/app/script.js +++ b/app/script.js @@ -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(); diff --git a/static/maximize.svg b/static/maximize.svg new file mode 100644 index 0000000..ec7a993 --- /dev/null +++ b/static/maximize.svg @@ -0,0 +1,3 @@ + + +