disable windowFrame by default

This commit is contained in:
pompurin404 2024-09-03 14:59:12 +08:00
parent 4a067c4f51
commit c07561ae05
No known key found for this signature in database
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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