💄 修复新人引导样式问题

This commit is contained in:
muwoo
2023-10-13 11:22:16 +08:00
parent 8fd9f342b8
commit a7a85a7c62
20 changed files with 17 additions and 10 deletions

View File

@@ -1,4 +1,7 @@
export const WINDOW_WIDTH = 688;
export const WINDOW_HEIGHT = 60;
export const GUIDE_WIDTH = 800;
export const GUIDE_HEIGHT = 600;
export const WINDOW_MIN_HEIGHT = 60;

View File

@@ -1,6 +1,10 @@
import { BrowserWindow, ipcMain, nativeTheme, screen } from 'electron';
import path from 'path';
import { WINDOW_HEIGHT, WINDOW_MIN_HEIGHT, WINDOW_WIDTH } from '@/common/constans/common';
import {
GUIDE_WIDTH,
WINDOW_MIN_HEIGHT,
GUIDE_HEIGHT,
} from '@/common/constans/common';
const getWindowPos = (width, height) => {
const screenPoint = screen.getCursorScreenPoint();
@@ -40,8 +44,8 @@ export default () => {
enableLargerThanScreen: true,
x,
y,
width: WINDOW_WIDTH,
height: WINDOW_HEIGHT,
width: GUIDE_WIDTH,
height: GUIDE_HEIGHT,
minHeight: WINDOW_MIN_HEIGHT,
webPreferences: {
webSecurity: false,