mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +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 { join } from 'path'
|
||||
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 tray: Tray | null = null
|
||||
|
@ -16,7 +16,7 @@ function createWindow(): void {
|
|||
height: 600,
|
||||
show: false,
|
||||
autoHideMenuBar: true,
|
||||
icon: icon,
|
||||
...(process.platform === 'linux' ? { icon } : {}),
|
||||
webPreferences: {
|
||||
preload: join(__dirname, '../preload/index.js'),
|
||||
sandbox: false
|
||||
|
|
|
@ -22,7 +22,7 @@ export default function OverrideCard(): JSX.Element {
|
|||
>
|
||||
<MdFormatOverline color="default" className="text-[24px]" />
|
||||
</Button>
|
||||
<Switch />
|
||||
<Switch size="sm" />
|
||||
</div>
|
||||
</CardBody>
|
||||
<CardFooter className="pt-1">
|
||||
|
|
|
@ -9,7 +9,7 @@ export default function SysproxySwitcher(): JSX.Element {
|
|||
<Button isIconOnly className="bg-transparent" variant="flat" color="default">
|
||||
<IoSettings color="default" className="text-lg" />
|
||||
</Button>
|
||||
<Switch />
|
||||
<Switch size="sm" />
|
||||
</div>
|
||||
</CardBody>
|
||||
<CardFooter className="pt-1">
|
||||
|
|
|
@ -9,7 +9,7 @@ export default function SysproxySwitcher(): JSX.Element {
|
|||
<Button isIconOnly className="bg-transparent" variant="flat" color="default">
|
||||
<IoSettings color="default" className="text-lg" />
|
||||
</Button>
|
||||
<Switch />
|
||||
<Switch size="sm" />
|
||||
</div>
|
||||
</CardBody>
|
||||
<CardFooter className="pt-1">
|
||||
|
|
Loading…
Reference in New Issue
Block a user