Skip to content

Commit

Permalink
fixed bugs on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
xianfei committed Oct 23, 2023
1 parent 26e261f commit 5862670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function createModelViewerWindow(args) {
if (args.useGlass) {
myBrowserWindow = blurBrowserWindow;
addtionalArgs = {
vibrancy: nativeTheme.themeSource,
vibrancy: 'popover',
backgroundColor: "#00000000",
};
}
Expand Down Expand Up @@ -334,7 +334,7 @@ function createModelViewerWindow(args) {
viewer.webContents.once('dom-ready', () => {
viewer.show();
viewer.loadFile("modelview/modelview.html");
if (args.useGlass) viewer.setSize(820*screen.getPrimaryDisplay().scaleFactor,540*screen.getPrimaryDisplay().scaleFactor)
if (args.useGlass&&isWin11) viewer.setSize(820*screen.getPrimaryDisplay().scaleFactor,540*screen.getPrimaryDisplay().scaleFactor)
});

// Open the DevTools.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sysmocap",
"version": "0.6.5",
"version": "0.6.6",
"description": "Video-based motion capture system.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 5862670

Please sign in to comment.