fix linux icon error

This commit is contained in:
pompurin404 2024-07-31 08:29:04 +08:00
parent 713530cae3
commit cdad19d29a
No known key found for this signature in database
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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">

View File

@ -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">

View File

@ -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">