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> {
Menu.setApplicationMenu(null)
const { useWindowFrame = true } = await getAppConfig()
const { useWindowFrame = false } = await getAppConfig()
const mainWindowState = windowStateKeeper({
defaultWidth: 800,
defaultHeight: 600

View File

@ -2,7 +2,7 @@ export const defaultConfig: IAppConfig = {
core: 'mihomo',
silentStart: false,
appTheme: 'system',
useWindowFrame: true,
useWindowFrame: false,
proxyInTray: true,
maxLogDays: 7,
proxyCols: 'auto',

View File

@ -38,7 +38,7 @@ const App: React.FC = () => {
appTheme = 'system',
controlDns = true,
controlSniff = true,
useWindowFrame = true,
useWindowFrame = false,
siderOrder = [
'sysproxy',
'tun',

View File

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

View File

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