mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
disable windowFrame by default
This commit is contained in:
parent
4a067c4f51
commit
c07561ae05
@ -144,7 +144,7 @@ async function handleDeepLink(url: string): Promise<void> {
|
||||
|
||||
export async function createWindow(): Promise<void> {
|
||||
Menu.setApplicationMenu(null)
|
||||
const { useWindowFrame = true } = await getAppConfig()
|
||||
const { useWindowFrame = false } = await getAppConfig()
|
||||
const mainWindowState = windowStateKeeper({
|
||||
defaultWidth: 800,
|
||||
defaultHeight: 600
|
||||
|
||||
@ -2,7 +2,7 @@ export const defaultConfig: IAppConfig = {
|
||||
core: 'mihomo',
|
||||
silentStart: false,
|
||||
appTheme: 'system',
|
||||
useWindowFrame: true,
|
||||
useWindowFrame: false,
|
||||
proxyInTray: true,
|
||||
maxLogDays: 7,
|
||||
proxyCols: 'auto',
|
||||
|
||||
@ -38,7 +38,7 @@ const App: React.FC = () => {
|
||||
appTheme = 'system',
|
||||
controlDns = true,
|
||||
controlSniff = true,
|
||||
useWindowFrame = true,
|
||||
useWindowFrame = false,
|
||||
siderOrder = [
|
||||
'sysproxy',
|
||||
'tun',
|
||||
|
||||
@ -14,7 +14,7 @@ let saveOnTop = false
|
||||
|
||||
const BasePage = forwardRef<HTMLDivElement, Props>((props, ref) => {
|
||||
const { appConfig } = useAppConfig()
|
||||
const { useWindowFrame = true } = appConfig || {}
|
||||
const { useWindowFrame = false } = appConfig || {}
|
||||
const [overlayWidth, setOverlayWidth] = React.useState(0)
|
||||
const [onTop, setOnTop] = useState(saveOnTop)
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ const GeneralConfig: React.FC = () => {
|
||||
useDockIcon = true,
|
||||
showTraffic = true,
|
||||
proxyInTray = true,
|
||||
useWindowFrame = true,
|
||||
useWindowFrame = false,
|
||||
envType = platform === 'win32' ? 'powershell' : 'bash',
|
||||
autoCheckUpdate,
|
||||
appTheme = 'system'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user