menu will now respect integrated titlebar setting

This commit is contained in:
dragonwocky 2020-10-08 09:58:35 +11:00
parent 6e43097a3f
commit 39ecd12943
Signed by: dragonwocky
GPG Key ID: C7A48B7846AA706D
4 changed files with 4 additions and 14 deletions

View File

@ -17,6 +17,7 @@ a flexibility update.
- new: in-page columns disabled/wrapped and wider pages when the window is narrower than 600px
for improved responsiveness.
- improved: a core mod option to make transitions snappy/0s.
- improved: menu will now respect integrated titlebar setting.
- bugfix: removed messenger emoji set as the provider no longer supports it.
- bugfix: remove shadow around light mode board headers
\+ minor text colour fixes for night shift theming.

View File

@ -19,7 +19,7 @@ window['__start'] = async () => {
.enabled,
},
tiling_mode: store('0f0bf8b6-eae6-4273-b307-8fc43f2ee082').tiling_mode,
frameless: true,
frameless: store('0f0bf8b6-eae6-4273-b307-8fc43f2ee082').frameless,
}));
document.querySelector('#titlebar').appendChild(buttons.element);

View File

@ -6,8 +6,6 @@
'use strict';
const { dirname } = require('path');
const url = require('url'),
path = require('path'),
electron = require('electron'),
@ -80,16 +78,7 @@ module.exports = (store, __exports) => {
};
}
componentDidMount() {
const buttons = require('./buttons.js')(() => ({
'72886371-dada-49a7-9afc-9f275ecf29d3': {
enabled: (
store('mods')['72886371-dada-49a7-9afc-9f275ecf29d3'] || {}
).enabled,
},
tiling_mode: store('0f0bf8b6-eae6-4273-b307-8fc43f2ee082')
.tiling_mode,
frameless: true,
}));
const buttons = require('./buttons.js')(store);
this.$titlebar.appendChild(buttons.element);
this.loadListeners();
}

View File

@ -88,7 +88,7 @@ module.exports = (store, __exports) => {
electron.shell.openExternal(JSON.stringify(window_state));
enhancer_menu = new electron.BrowserWindow({
show: true,
frame: false,
frame: !store().frameless,
titleBarStyle: 'hiddenInset',
x:
window_state.x ||