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', () => {
|
app.on('ready', () => {
|
||||||
function createWindow (fn) {
|
function createWindow (fn) {
|
||||||
let win = new BrowserWindow({
|
const cfg = plugins.getDecoratedConfig();
|
||||||
|
const win = new BrowserWindow({
|
||||||
width: 540,
|
width: 540,
|
||||||
height: 380,
|
height: 380,
|
||||||
minHeight: 190,
|
minHeight: 190,
|
||||||
minWidth: 370,
|
minWidth: 370,
|
||||||
titleBarStyle: 'hidden-inset',
|
titleBarStyle: 'hidden-inset',
|
||||||
title: 'HyperTerm',
|
title: 'HyperTerm',
|
||||||
backgroundColor: toHex(config.getConfig().backgroundColor || '#000'),
|
backgroundColor: toHex(cfg.backgroundColor || '#000'),
|
||||||
transparent: true,
|
transparent: true,
|
||||||
// we only want to show when the prompt
|
// we only want to show when the prompt
|
||||||
// is ready for user input
|
// is ready for user input
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue