Skip to content

Commit

Permalink
fix: use glasstron instead of mica-electron, for supporting Windo…
Browse files Browse the repository at this point in the history
…ws 10 & Other OS (#2)
  • Loading branch information
JellyBrick authored Jun 30, 2023
1 parent 6deda01 commit 313ba68
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 108 deletions.
18 changes: 18 additions & 0 deletions glasstron.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare module 'glasstron' {
import { BrowserWindow as ElectronBrowserWindow } from 'electron';

type GlasstronOptions = {
blur?: boolean,
blurType?: 'blurbehind' | 'acrylic' | 'none',
blurGnomeSigma?: number,
blurCornerRadius?: number,
}

interface Glasstron {
BrowserWindow: {new(options?: Electron.BrowserWindowConstructorOptions & GlasstronOptions): ElectronBrowserWindow};
}

const glasstron: Glasstron;

export default glasstron;
}
Loading

0 comments on commit 313ba68

Please sign in to comment.