mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-27 07:45:08 +02:00
fix a color flash on start
This commit is contained in:
parent
8b2df9e1c8
commit
42134b4888
|
@ -33,6 +33,18 @@ if (!htmlPath) {
|
||||||
}
|
}
|
||||||
const showDevToolsOnStart = process.argv.some(arg => arg.startsWith('--devtools'));
|
const showDevToolsOnStart = process.argv.some(arg => arg.startsWith('--devtools'));
|
||||||
|
|
||||||
|
const themeBgColors = {
|
||||||
|
db: '#342f2e',
|
||||||
|
fb: '#282c34',
|
||||||
|
wh: '#fafafa',
|
||||||
|
te: '#222',
|
||||||
|
hc: '#fafafa',
|
||||||
|
sd: '#002b36',
|
||||||
|
sl: '#fdf6e3',
|
||||||
|
macdark: '#1f1f20'
|
||||||
|
};
|
||||||
|
const defaultBgColor = '#282C34';
|
||||||
|
|
||||||
app.setPath('userData', path.join(tempUserDataPath, tempUserDataPathRand));
|
app.setPath('userData', path.join(tempUserDataPath, tempUserDataPathRand));
|
||||||
|
|
||||||
setEnv();
|
setEnv();
|
||||||
|
@ -143,7 +155,6 @@ function setSystemAppearance() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createMainWindow(appSettings) {
|
function createMainWindow(appSettings) {
|
||||||
const isMacDarkTheme = appSettings.theme === 'macdark';
|
|
||||||
const windowOptions = {
|
const windowOptions = {
|
||||||
show: false,
|
show: false,
|
||||||
width: 1000,
|
width: 1000,
|
||||||
|
@ -151,7 +162,7 @@ function createMainWindow(appSettings) {
|
||||||
minWidth: 700,
|
minWidth: 700,
|
||||||
minHeight: 400,
|
minHeight: 400,
|
||||||
titleBarStyle: appSettings.titlebarStyle,
|
titleBarStyle: appSettings.titlebarStyle,
|
||||||
backgroundColor: isMacDarkTheme ? '#1F1F20' : '#282C34',
|
backgroundColor: themeBgColors[appSettings.theme] || defaultBgColor,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
backgroundThrottling: false,
|
backgroundThrottling: false,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
|
|
|
@ -20,6 +20,7 @@ Release notes
|
||||||
`-` fix #554: checking active window id during auto-type
|
`-` fix #554: checking active window id during auto-type
|
||||||
`-` fix plugin gallery layout on mobile
|
`-` fix plugin gallery layout on mobile
|
||||||
`-` fix #1141: opening file from storage if cache is not available
|
`-` fix #1141: opening file from storage if cache is not available
|
||||||
|
`-` fix a color flash on start
|
||||||
|
|
||||||
##### v1.10.1 (2019-09-20)
|
##### v1.10.1 (2019-09-20)
|
||||||
`-` fixed Argon2 issues in Safari 13
|
`-` fixed Argon2 issues in Safari 13
|
||||||
|
|
Loading…
Reference in New Issue
Block a user