mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 03:32:17 +08:00
fix linux icon error
This commit is contained in:
parent
713530cae3
commit
cdad19d29a
|
@ -1,7 +1,7 @@
|
||||||
import { app, shell, BrowserWindow, Tray, Menu } from 'electron'
|
import { app, shell, BrowserWindow, Tray, Menu } from 'electron'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
|
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
|
||||||
import icon from '../../resources/icon.ico?asset'
|
import icon from '../../resources/icon.png?asset'
|
||||||
|
|
||||||
let window: BrowserWindow | null = null
|
let window: BrowserWindow | null = null
|
||||||
let tray: Tray | null = null
|
let tray: Tray | null = null
|
||||||
|
@ -16,7 +16,7 @@ function createWindow(): void {
|
||||||
height: 600,
|
height: 600,
|
||||||
show: false,
|
show: false,
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
icon: icon,
|
...(process.platform === 'linux' ? { icon } : {}),
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: join(__dirname, '../preload/index.js'),
|
preload: join(__dirname, '../preload/index.js'),
|
||||||
sandbox: false
|
sandbox: false
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default function OverrideCard(): JSX.Element {
|
||||||
>
|
>
|
||||||
<MdFormatOverline color="default" className="text-[24px]" />
|
<MdFormatOverline color="default" className="text-[24px]" />
|
||||||
</Button>
|
</Button>
|
||||||
<Switch />
|
<Switch size="sm" />
|
||||||
</div>
|
</div>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
<CardFooter className="pt-1">
|
<CardFooter className="pt-1">
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default function SysproxySwitcher(): JSX.Element {
|
||||||
<Button isIconOnly className="bg-transparent" variant="flat" color="default">
|
<Button isIconOnly className="bg-transparent" variant="flat" color="default">
|
||||||
<IoSettings color="default" className="text-lg" />
|
<IoSettings color="default" className="text-lg" />
|
||||||
</Button>
|
</Button>
|
||||||
<Switch />
|
<Switch size="sm" />
|
||||||
</div>
|
</div>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
<CardFooter className="pt-1">
|
<CardFooter className="pt-1">
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default function SysproxySwitcher(): JSX.Element {
|
||||||
<Button isIconOnly className="bg-transparent" variant="flat" color="default">
|
<Button isIconOnly className="bg-transparent" variant="flat" color="default">
|
||||||
<IoSettings color="default" className="text-lg" />
|
<IoSettings color="default" className="text-lg" />
|
||||||
</Button>
|
</Button>
|
||||||
<Switch />
|
<Switch size="sm" />
|
||||||
</div>
|
</div>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
<CardFooter className="pt-1">
|
<CardFooter className="pt-1">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user