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