remove black window flashiness

fixes #10617
This commit is contained in:
Joao Moreno 2016-08-17 16:53:54 +02:00
parent 7533f1e141
commit f0f50fe783
2 changed files with 12 additions and 11 deletions

View file

@ -4,6 +4,18 @@
<head>
<meta charset="utf-8" />
<style>.monaco-shell.vs-dark { background-color: #1E1E1E; }</style>
<script>
try {
const theme = window.localStorage.getItem('storage://global/workbench.theme');
const baseTheme = (theme || '').split(' ')[0];
if (baseTheme !== 'vs-dark') {
window.document.body.className = 'monaco-shell ' + baseTheme;
}
} catch (error) {
console.error(error);
}
</script>
</head>
<body class="monaco-shell vs-dark" aria-label=""></body>
<script src="index.js"></script>

View file

@ -90,17 +90,6 @@ function registerListeners(enableDeveloperTools) {
}
function main() {
try {
const theme = window.localStorage.getItem('storage://global/workbench.theme');
const baseTheme = (theme || '').split(' ')[0];
if (baseTheme !== 'vs-dark') {
window.document.body.className = 'monaco-shell ' + baseTheme;
}
} catch (error) {
console.error(error);
}
const webFrame = require('electron').webFrame;
const args = parseURLQueryArgs();
const configuration = JSON.parse(args['config'] || '{}') || {};