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

View File

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

View File

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

View File

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