Skip to content

Commit

Permalink
Fix loading glow on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Sep 14, 2024
1 parent 888d61a commit 71be550
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2139,14 +2139,13 @@ function createHubWindow(state?: WindowState) {
prefs.backgroundMaterial = "acrylic";
}
let overlayOptions: TitleBarOverlay = {
color: nativeTheme.shouldUseDarkColors ? "#222222" : "#ffffff",
color: "#00000000",
symbolColor: nativeTheme.shouldUseDarkColors ? "#ffffff" : "#000000",
height: 38
};
prefs.titleBarOverlay = overlayOptions;
nativeTheme.addListener("updated", () => {
if (window) {
overlayOptions.color = nativeTheme.shouldUseDarkColors ? "#222222" : "#ffffff";
overlayOptions.symbolColor = nativeTheme.shouldUseDarkColors ? "#ffffff" : "#000000";
window.setTitleBarOverlay(overlayOptions);
}
Expand Down

0 comments on commit 71be550

Please sign in to comment.