|
|
|
@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
|
|
|
|
|
import { BrowserWindow, dialog, nativeImage } from 'electron'; |
|
|
|
|
import { writeFile } from 'node:fs'; |
|
|
|
|
import { ICON, WEB_URL, WIN_CONFIG, preload, url } from '../main/constant'; |
|
|
|
|
import {BrowserWindow, dialog, nativeImage} from 'electron'; |
|
|
|
|
import {writeFile} from 'node:fs'; |
|
|
|
|
import {ICON, preload, url, WEB_URL, WIN_CONFIG} from '../main/constant'; |
|
|
|
|
|
|
|
|
|
let editImageWin: BrowserWindow | null = null; |
|
|
|
|
|
|
|
|
|
function createEditImageWin(search?: any): BrowserWindow { |
|
|
|
|
editImageWin = new BrowserWindow({ |
|
|
|
|
title: 'pear-rec 图片编辑', |
|
|
|
|
title: '图片编辑', |
|
|
|
|
icon: ICON, |
|
|
|
|
height: WIN_CONFIG.editImage.height, |
|
|
|
|
width: WIN_CONFIG.editImage.width, |
|
|
|
|