mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-16 23:54:19 +08:00
💄 修复新人引导样式问题
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user