-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use
glasstron
instead of mica-electron
, for supporting Windo…
…ws 10 & Other OS (#2)
- Loading branch information
1 parent
6deda01
commit 313ba68
Showing
5 changed files
with
158 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.