Skip to content

Commit

Permalink
fix: background color flashes when application starts
Browse files Browse the repository at this point in the history
Signed-off-by: The1111mp <[email protected]>
  • Loading branch information
1111mp committed Feb 25, 2024
1 parent 2e3cf8b commit d31a5f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const createWindow = async (code?: number) => {
x: 12,
y: 12
},
opacity: 0,
backgroundColor:
setting.theme === Themes.System
? nativeTheme.shouldUseDarkColors
Expand Down Expand Up @@ -124,6 +125,7 @@ const createWindow = async (code?: number) => {
mainWindow.minimize();
} else {
mainWindow.show();
setTimeout(() => mainWindow!.setOpacity(1), 60);

if (code !== void 0) {
setTimeout(() => {
Expand Down

0 comments on commit d31a5f5

Please sign in to comment.