mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
index: allow plugin authors to affect initial config
This commit is contained in:
parent
e8eb170204
commit
ebb0b7f1d2
1 changed files with 3 additions and 2 deletions
5
index.js
5
index.js
|
|
@ -44,14 +44,15 @@ let winCount = 0;
|
|||
|
||||
app.on('ready', () => {
|
||||
function createWindow (fn) {
|
||||
let win = new BrowserWindow({
|
||||
const cfg = plugins.getDecoratedConfig();
|
||||
const win = new BrowserWindow({
|
||||
width: 540,
|
||||
height: 380,
|
||||
minHeight: 190,
|
||||
minWidth: 370,
|
||||
titleBarStyle: 'hidden-inset',
|
||||
title: 'HyperTerm',
|
||||
backgroundColor: toHex(config.getConfig().backgroundColor || '#000'),
|
||||
backgroundColor: toHex(cfg.backgroundColor || '#000'),
|
||||
transparent: true,
|
||||
// we only want to show when the prompt
|
||||
// is ready for user input
|
||||
|
|
|
|||
Loading…
Reference in a new issue