diff --git a/package.json b/package.json index d56130a..4240245 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "register-service-worker": "^1.7.1", "svg-sprite-loader": "^5.0.0", "tunnel": "^0.0.6", + "vscode-codicons": "^0.0.14", "vue": "^2.6.11", "vue-analytics": "^5.22.1", "vue-electron": "^1.0.6", diff --git a/src/background.js b/src/background.js index 3f46503..ec11712 100644 --- a/src/background.js +++ b/src/background.js @@ -88,15 +88,20 @@ class Background { createWindow() { console.log("creating app window"); + // Only for Windows, a special title bar for it + const withoutFrame = process.platform == "win32"; + this.window = new BrowserWindow({ width: this.store.get("window.width") | 1440, height: this.store.get("window.height") | 840, - minWidth: 1080, - minHeight: 720, + minWidth: 360, + minHeight: 240, titleBarStyle: "hiddenInset", + frame: !withoutFrame, webPreferences: { webSecurity: false, nodeIntegration: true, + enableRemoteModule: true, }, }); diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 20e6f6a..dbc4dc1 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -1,5 +1,26 @@