New avatars:

* new settings to change the avatar set
* user documentation
This commit is contained in:
John Livingston
2024-02-09 12:41:05 +01:00
parent 19fca3891a
commit 70563200fe
41 changed files with 839 additions and 74 deletions

View File

@ -5,6 +5,8 @@ import { RoomChannel } from './room-channel'
import { BotsCtl } from './bots/ctl'
import { loc } from './loc'
type AvatarSet = 'sepia' | 'legacy'
async function initSettings (options: RegisterServerOptions): Promise<void> {
const { peertubeHelpers, registerSetting, settingsManager } = options
@ -214,6 +216,22 @@ Please read
descriptionHTML: loc('theming_advanced_description')
})
registerSetting({
name: 'avatar-set',
label: loc('avatar_set_label'),
descriptionHTML: loc('avatar_set_description'),
type: 'select',
default: 'sepia' as AvatarSet,
private: true,
options: [
{ value: 'sepia', label: loc('avatar_set_option_sepia') },
{ value: 'legacy', label: loc('avatar_set_option_legacy') }
] as Array<{
value: AvatarSet
label: string
}>
})
registerSetting({
name: 'converse-theme',
label: loc('converse_theme_label'),
@ -434,5 +452,6 @@ Please read
}
export {
initSettings
initSettings,
AvatarSet
}