add new options to settings interface

This commit is contained in:
Tamius Han 2024-12-17 14:19:30 +01:00
parent 4853d7e2fd
commit 2337f7a3ba
3 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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,

View File

@ -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,