Skip to content

Commit

Permalink
Add minimized window option
Browse files Browse the repository at this point in the history
  • Loading branch information
dacoaster committed Dec 21, 2022
1 parent 89cda31 commit 51c8579
Show file tree
Hide file tree
Showing 37 changed files with 2,367 additions and 1,499 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"postuninstall": "electron-builder install-app-deps",
"publish": "vue-cli-service electron:build -p always"
},
"main": "background.js",
"dependencies": {
"@fortawesome/fontawesome-free": "^6.2.1",
"@johmun/vue-tags-input": "^2.1.0",
Expand Down
3 changes: 3 additions & 0 deletions src/assets/icon/connect-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/icon/microphone-slash-solid-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/icon/microphone-solid-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/assets/icon/microphone-white.svg

This file was deleted.

3 changes: 3 additions & 0 deletions src/assets/icon/play-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/icon/video-slash-solid-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/assets/icon/video-solid-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 4 additions & 19 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import { createProtocol } from "vue-cli-plugin-electron-builder/lib";
import installExtension, { VUEJS_DEVTOOLS } from "electron-devtools-installer";

import createMenu from "./menu";
import { VIEW_MODE } from "./modules/constants";

const isDevelopment = process.env.NODE_ENV !== "production";

const browserUtility = require("./modules/BrowserWindowUtility");
const databaseUtility = require("./modules/DatabaseUtility");
const windowUtility = require("./modules/WindowUtility");

const path = require("path");
require("./modules/IpcHandlers");

// initialize session
Expand All @@ -24,25 +25,9 @@ protocol.registerSchemesAsPrivileged([

async function createWindow() {
// Create the browser window.
const win = new BrowserWindow({
width: 800,
height: 600,
minWidth: 800,
minHeight: 600,
center: true,
icon: path.join(__dirname, "../public/logo.png"),
webPreferences: {
// Use pluginOptions.nodeIntegration, leave this alone
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
nodeIntegration: true,
webSecurity: false,
contextIsolation: !process.env.ELECTRON_NODE_INTEGRATION,
enableRemoteModule: true,
preload: path.join(app.getAppPath(), "preload.js"),
},
});

const win = windowUtility.getMainWindow();
browserUtility.setBrowserWindow(win);
browserUtility.setViewMode(VIEW_MODE.NORMAL);

if (process.env.WEBPACK_DEV_SERVER_URL) {
// Load the url of the dev server if in development mode
Expand Down
Loading

0 comments on commit 51c8579

Please sign in to comment.