Skip to content

Commit 1610147

Browse files
committed
hide menubar on tertiary windows
1 parent fa71f52 commit 1610147

5 files changed

Lines changed: 32 additions & 18 deletions

File tree

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
node-version=16.20.2
1+
node-version=16.17.1

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/menu.js

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ module.exports = (store, services, mainWindow, app, defaultUserAgent) => {
203203
}
204204
},
205205
{
206-
label: 'About Quark Player',
206+
label: 'About ' + appName,
207207
accelerator: 'Cmd+Alt+A',
208208
acceleratorWorksWhenHidden: false,
209209
visible: isMac ? true : false,
@@ -212,6 +212,7 @@ module.exports = (store, services, mainWindow, app, defaultUserAgent) => {
212212
width: 512,
213213
height: 480,
214214
useContentSize: true,
215+
autoHideMenuBar: true,
215216
title: 'About Quark Player',
216217
icon: isWin ? path.join(__dirname, 'icon.ico') : path.join(__dirname, 'icon64.png'),
217218
webPreferences: {
@@ -712,7 +713,13 @@ module.exports = (store, services, mainWindow, app, defaultUserAgent) => {
712713
label: 'View Humans.txt',
713714
accelerator: 'CmdorCtrl+Alt+Shift+H',
714715
click() {
715-
const humansWindow = new BrowserWindow({ width: 532, height: 600, useContentSize: true, title: 'humans.txt' });
716+
const humansWindow = new BrowserWindow({
717+
width: 532,
718+
height: 600,
719+
useContentSize: true,
720+
autoHideMenuBar: true,
721+
title: 'humans.txt'
722+
});
716723
humansWindow.loadFile('./ui/humans.txt');
717724
electronLog.info('Opened humans.txt :)');
718725
}
@@ -721,7 +728,13 @@ module.exports = (store, services, mainWindow, app, defaultUserAgent) => {
721728
label: 'View License',
722729
accelerator: 'CmdorCtrl+Alt+Shift+L',
723730
click() {
724-
const licenseWindow = new BrowserWindow({ width: 532, height: 550, useContentSize: true, title: 'License' });
731+
const licenseWindow = new BrowserWindow({
732+
width: 532,
733+
height: 550,
734+
useContentSize: true,
735+
autoHideMenuBar: true,
736+
title: 'License'
737+
});
725738
licenseWindow.loadFile('./ui/license.md');
726739
electronLog.info('Opened license.md');
727740
}
@@ -734,7 +747,8 @@ module.exports = (store, services, mainWindow, app, defaultUserAgent) => {
734747
width: 512,
735748
height: 500,
736749
useContentSize: true,
737-
title: 'About Quark Player',
750+
autoHideMenuBar: true,
751+
title: 'About ' + appName,
738752
icon: isWin ? path.join(__dirname, 'icon.ico') : path.join(__dirname, 'icon64.png'),
739753
webPreferences: {
740754
nodeIntegration: false,

src/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ui/humans.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
/* WEBUI */
3333

34-
Last update: 2024/1/10
34+
Last update: 2024/1/13
3535
Language: English
3636
Doctype: HTML5, CSS, JSON
3737
IDE: Geany

0 commit comments

Comments
 (0)