This commit is contained in:
Korbs 2023-09-27 03:30:05 -04:00
parent 9fa2cacacc
commit f4b4d46153
No known key found for this signature in database
3 changed files with 3 additions and 7 deletions

View file

@ -9,7 +9,4 @@ ___
## Electron (App)
- Remember window size and posiiton
- Deep link(sign in to Penpot via browser) (Help Wanted)
- Improve performance
- Startup time
- Loading time
- Deep link(sign in to Penpot via browser) (Help Wanted)

View file

@ -24,7 +24,6 @@ module.exports = {
else if (process.platform === 'linux') {setTimeout(() => {
mainWindow.webContents.executeJavaScript(`if (SetLTTheme == null){SwitchLinuxTitlebarTheme('./frontend/stylesheets/settings/linux-titlebar/gnome.css')}else{SwitchLinuxTitlebarTheme(SetLTTheme)}`)
mainWindow.webContents.executeJavaScript(`document.querySelector(".linux-setting").style.display = 'inherit'`)
mainWindow.webContents.executeJavaScript(`document.querySelector(".linux-titlebar-buttons").style.display = 'inherit'`)
mainWindow.webContents.executeJavaScript(`document.querySelector(".actions").style.right = '102px'`)
mainWindow.webContents.executeJavaScript(`document.documentElement.style.setProperty('--navBarWF', '144px')`)
}, 1500)}

View file

@ -13,7 +13,7 @@ module.exports = {
minHeight: 600,
// Theme
darkTheme: true,
transparent: global.transparent, // Only enable for macOS to get Vibrancy effect
transparent: global.transparent,
vibrancy: "sidebar",
// Titlebar
titleBarStyle: 'hidden',
@ -29,7 +29,7 @@ module.exports = {
icon: global.AppIcon,
webPreferences: {
preload: path.join(app.getAppPath(), '/src/process/preload.js'),
sandbox: false, // Doesn't work with Preload API
sandbox: false, // App doens't load properly if enabled
webviewTag: true
}
})