40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
// Copyright 2021 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import { z } from 'zod';
|
|
|
|
import type { StorageAccessType } from './Storage.d';
|
|
|
|
export const themeSettingSchema = z.enum(['system', 'light', 'dark']);
|
|
export type ThemeSettingType = z.infer<typeof themeSettingSchema>;
|
|
|
|
// Configuration keys that only affect UI
|
|
export const STORAGE_UI_KEYS: ReadonlyArray<keyof StorageAccessType> = [
|
|
'always-relay-calls',
|
|
'audio-notification',
|
|
'auto-download-update',
|
|
'badge-count-muted-conversations',
|
|
'call-ringtone-notification',
|
|
'call-system-notification',
|
|
'customColors',
|
|
'defaultConversationColor',
|
|
'hasAllStoriesMuted',
|
|
'hide-menu-bar',
|
|
'incoming-call-notification',
|
|
'notification-draw-attention',
|
|
'notification-setting',
|
|
'preferred-audio-input-device',
|
|
'preferred-audio-output-device',
|
|
'preferred-video-input-device',
|
|
'preferredLeftPaneWidth',
|
|
'preferredReactionEmoji',
|
|
'previousAudioDeviceModule',
|
|
'showStickerPickerHint',
|
|
'showStickersIntroduction',
|
|
'skinTone',
|
|
'spell-check',
|
|
'system-tray-setting',
|
|
'theme-setting',
|
|
'zoomFactor',
|
|
];
|