Files
Bridge-Multi/src-shared/Settings.ts
2023-11-29 20:06:11 -06:00

35 lines
758 B
TypeScript

export const themes = [
'business',
'dark',
'halloween',
'night',
'synthwave',
'aqua',
'emerald',
'lemonade',
'valentine',
'winter',
'aren',
'froogs',
] as const
/**
* Represents Bridge's user settings.
*/
export interface Settings {
rateLimitDelay: number // Number of seconds to wait between each file download from Google servers
downloadVideos: boolean // If background videos should be downloaded
theme: typeof themes[number] // The name of the currently enabled UI theme
libraryPath: string | undefined // The path to the user's library
}
/**
* Bridge's default user settings.
*/
export const defaultSettings: Settings = {
rateLimitDelay: 31,
downloadVideos: true,
theme: 'dark',
libraryPath: undefined,
}