Image properties customization (#1590)

This commit is contained in:
Manuel
2023-11-12 13:37:32 +01:00
committed by GitHub
parent e900a7b07e
commit 27037c6f50
7 changed files with 78 additions and 10 deletions

View File

@@ -45,6 +45,9 @@ export interface CustomizationSettingsType {
logoImageUrl?: string;
faviconUrl?: string;
backgroundImageUrl?: string;
backgroundImageAttachment?: typeof BackgroundImageAttachment[number];
backgroundImageSize?: typeof BackgroundImageSize[number];
backgroundImageRepeat?: typeof BackgroundImageRepeat[number];
customCss?: string;
colors: ColorsCustomizationSettingsType;
appOpacity?: number;
@@ -52,6 +55,12 @@ export interface CustomizationSettingsType {
accessibility: AccessibilitySettings;
}
export const BackgroundImageAttachment = ['fixed', 'scroll'] as const;
export const BackgroundImageSize = ['cover', 'contain'] as const;
export const BackgroundImageRepeat = ['no-repeat', 'repeat', 'repeat-x', 'repeat-y'] as const;
export interface AccessibilitySettings {
disablePingPulse: boolean;
replacePingDotsWithIcons: boolean;