File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import { openDirInExplorer } from '@common/utils/electron'
1414
1515export const initGlobalData = ( ) => {
1616 const envParams = parseEnvParams ( )
17+ envParams . cmdParams . dt = ! ! envParams . cmdParams . dt
18+
1719 global . envParams = {
1820 cmdParams : envParams . cmdParams ,
1921 deeplink : envParams . deeplink ,
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export const createWindow = async(userApi: LX.UserApi.UserApiInfo) => {
7777 minimizable : false ,
7878 maximizable : false ,
7979 fullscreenable : false ,
80+ roundedCorners : false ,
8081 hasShadow : false ,
8182 show : false ,
8283 webPreferences : {
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export const createWindow = () => {
127127 minimizable : false ,
128128 maximizable : false ,
129129 fullscreenable : false ,
130+ roundedCorners : false ,
130131 show : false ,
131132 alwaysOnTop : isAlwaysOnTop ,
132133 skipTaskbar : ! isShowTaskbar ,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export const createWindow = () => {
8787 resizable : false ,
8888 maximizable : false ,
8989 fullscreenable : true ,
90- roundedCorners : false ,
90+ roundedCorners : global . envParams . cmdParams . dt ,
9191 show : false ,
9292 webPreferences : {
9393 session : ses ,
@@ -109,7 +109,7 @@ export const createWindow = () => {
109109 browserWindow = new BrowserWindow ( options )
110110
111111 const winURL = process . env . NODE_ENV !== 'production' ? 'http://localhost:9080' : `file://${ path . join ( encodePath ( __dirname ) , 'index.html' ) } `
112- void browserWindow . loadURL ( winURL + `?os=${ getPlatform ( ) } &dt=${ ! ! global . envParams . cmdParams . dt } &dark=${ shouldUseDarkColors } &theme=${ encodeURIComponent ( JSON . stringify ( theme ) ) } ` )
112+ void browserWindow . loadURL ( winURL + `?os=${ getPlatform ( ) } &dt=${ global . envParams . cmdParams . dt } &dark=${ shouldUseDarkColors } &theme=${ encodeURIComponent ( JSON . stringify ( theme ) ) } ` )
113113
114114 winEvent ( )
115115
You can’t perform that action at this time.
0 commit comments