diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-09-09 21:05:06 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-09-10 09:51:38 +0200 |
| commit | f61e0ea1297bb22454e6a8281661b990288fbcce (patch) | |
| tree | 3a83a41e7dce1d7e97159048e1976cc45de51ecf /gui/src | |
| parent | 021e1754fec768e3ba56e67a93d919e83f09ae64 (diff) | |
| download | mullvadvpn-f61e0ea1297bb22454e6a8281661b990288fbcce.tar.xz mullvadvpn-f61e0ea1297bb22454e6a8281661b990288fbcce.zip | |
Add macOS scrollbar visibility to ipc schema
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index 32f1344bfd..cd39ac8c8a 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -39,6 +39,12 @@ export interface IRelayListPair { export type LaunchApplicationResult = { success: true } | { error: string }; +export enum MacOsScrollbarVisibility { + always, + whenScrolling, + automatic, +} + export interface IAppStateSnapshot { isConnected: boolean; autoStart: boolean; @@ -53,6 +59,7 @@ export interface IAppStateSnapshot { wireguardPublicKey?: IWireguardPublicKey; translations: ITranslations; windowsSplitTunnelingApplications?: IApplication[]; + macOsScrollbarVisibility?: MacOsScrollbarVisibility; } // The different types of requests are: @@ -101,6 +108,7 @@ export const ipcSchema = { window: { shape: notifyRenderer<IWindowShapeParameters>(), focus: notifyRenderer<boolean>(), + macOsScrollbarVisibility: notifyRenderer<MacOsScrollbarVisibility>(), }, navigation: { reset: notifyRenderer<void>(), |
