From 2337f7a3ba908b7922c19d3dcffb61cdcfeddcf2 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 17 Dec 2024 14:19:30 +0100 Subject: [PATCH] add new options to settings interface --- src/common/interfaces/SettingsInterface.ts | 2 ++ src/ext/conf/ExtConfPatches.ts | 2 ++ src/ext/conf/ExtensionConf.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/common/interfaces/SettingsInterface.ts b/src/common/interfaces/SettingsInterface.ts index 8b1762b..8c1d1ce 100644 --- a/src/common/interfaces/SettingsInterface.ts +++ b/src/common/interfaces/SettingsInterface.ts @@ -214,6 +214,8 @@ interface SettingsInterface { ui: { inPlayer: { enabled: boolean, + enabledFullscreenOnly: boolean, + popupAlignment: 'left' | 'right', minEnabledWidth: number, // don't show UI if player is narrower than % of screen width activation: 'trigger-zone' | 'player', // what needs to be hovered in order for UI to be visible triggerZoneDimensions: { // how large the trigger zone is (relative to player size) diff --git a/src/ext/conf/ExtConfPatches.ts b/src/ext/conf/ExtConfPatches.ts index 964c43a..671b1d8 100644 --- a/src/ext/conf/ExtConfPatches.ts +++ b/src/ext/conf/ExtConfPatches.ts @@ -169,8 +169,10 @@ const ExtensionConfPatch = [ userOptions.ui = { inPlayer: { enabled: true, // enable by default on new installs + enabledFullscreenOnly: false, minEnabledWidth: 0.75, activation: 'player', + popupAlignment: 'left', triggerZoneDimensions: { width: 0.5, height: 0.5, diff --git a/src/ext/conf/ExtensionConf.ts b/src/ext/conf/ExtensionConf.ts index 545e85d..9db7a4a 100644 --- a/src/ext/conf/ExtensionConf.ts +++ b/src/ext/conf/ExtensionConf.ts @@ -160,8 +160,10 @@ const ExtensionConf: SettingsInterface = { ui: { inPlayer: { enabled: true, // enable by default on new installs + enabledFullscreenOnly: false, minEnabledWidth: 0.75, activation: 'player', + popupAlignment: 'left', triggerZoneDimensions: { width: 0.5, height: 0.5,