From ed6737157b8d3989121bf288b200077347189c94 Mon Sep 17 00:00:00 2001 From: sawka Date: Sun, 12 Mar 2023 17:38:03 -0700 Subject: [PATCH] background color black on startup --- src/emain.ts | 3 ++- src/sh2.less | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/emain.ts b/src/emain.ts index 542718f6..61f71a43 100644 --- a/src/emain.ts +++ b/src/emain.ts @@ -108,7 +108,7 @@ function getLocalServerCmd() { let localServerPath = getLocalServerPath(); let scHome = getPromptHomeDir(); let logFile = path.join(scHome, "local-server.log"); - return `${localServerPath} >> ${logFile} 2>&1`; + return `${localServerPath} >> "${logFile}" 2>&1`; } function getLocalServerCwd() { @@ -182,6 +182,7 @@ function createMainWindow(clientData) { webPreferences: { preload: path.join(getAppBasePath(), DistDir, "preload.js"), }, + backgroundColor: '#000', }); let indexHtml = (isDev ? "index-dev.html" : "index.html"); win.loadFile(path.join(getAppBasePath(), "static", indexHtml)); diff --git a/src/sh2.less b/src/sh2.less index 3521c814..fbc6c46d 100644 --- a/src/sh2.less +++ b/src/sh2.less @@ -46,8 +46,9 @@ font-weight: @weight; } -html, body, #main { +html, body, #app, #main { background-color: #000; + height: 100vh; } body {