fix netinfo window styles on windows

This commit is contained in:
sparks-alec
2023-01-09 01:18:03 -05:00
parent 6ccfd92db3
commit 9b951452a5
2 changed files with 21 additions and 3 deletions
+20 -2
View File
@@ -147,7 +147,6 @@ const windowMac = {
transparent: true,
frame: false,
show: false,
// backgroundColor: "#333333",
vibrancy: 'window',
visualEffectState: 'followWindow',
webPreferences: {
@@ -168,6 +167,21 @@ const windowWin = {
},
};
const networkInfoMac = {
width: 700,
height: 350,
// transparent: true,
frame: true,
show: false,
vibrancy: 'window',
visualEffectState: 'followWindow',
webPreferences: {
contextIsolation: false,
nodeIntegration: true,
preload: path.join(__dirname, 'networkInterfaces.js'),
},
};
const networkInfoWin = {
width: 700,
height: 350,
@@ -265,7 +279,11 @@ ipcMain.on('openNetworkInfoWindow', (event, arg) => {
function openNetworkInfoWindow() {
if (!networkInfoWindow || (networkInfoWindow && networkInfoWindow.isDestroyed())) {
networkInfoWindow = new BrowserWindow(networkInfoWin);
if (isMac) {
networkInfoWindow = new BrowserWindow(networkInfoMac);
} else {
networkInfoWindow = new BrowserWindow(networkInfoWin);
}
networkInfoWindow.loadFile('networkInterfaces.html');
}
networkInfoWindow.show();
+1 -1
View File
@@ -7,7 +7,7 @@
color: white;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
user-select: none;
background-color: rgba(0, 0, 0, 0.3);
background-color: transparent;
}
table {
width: 100%;