mirror of
https://github.com/handsomezhuzhu/AeroStart.git
synced 2026-02-20 20:10:15 +00:00
46 lines
993 B
TypeScript
46 lines
993 B
TypeScript
|
|
|
|
export interface SearchEngine {
|
|
name: string;
|
|
urlPattern: string;
|
|
icon?: string;
|
|
}
|
|
|
|
export type BackgroundType = 'image' | 'video';
|
|
|
|
export type WallpaperFit = 'cover' | 'contain' | 'fill' | 'repeat' | 'center';
|
|
|
|
export interface PresetWallpaper {
|
|
id?: string;
|
|
name: string;
|
|
type: BackgroundType;
|
|
url: string;
|
|
thumbnail?: string;
|
|
isCustom?: boolean;
|
|
}
|
|
|
|
export type Language = 'en' | 'zh';
|
|
|
|
export interface UserSettings {
|
|
use24HourFormat: boolean;
|
|
showSeconds: boolean;
|
|
backgroundBlur: number;
|
|
searchEngines: SearchEngine[];
|
|
selectedEngine: string;
|
|
themeColor: string;
|
|
searchOpacity: number;
|
|
enableMaskBlur: boolean;
|
|
maskOpacity: number;
|
|
backgroundUrl: string;
|
|
backgroundType: BackgroundType;
|
|
wallpaperFit: WallpaperFit;
|
|
customWallpapers: PresetWallpaper[];
|
|
enableSearchHistory: boolean;
|
|
searchHistory: string[];
|
|
language: Language;
|
|
motto: string;
|
|
searchGlow: number;
|
|
}
|
|
|
|
export type SettingsSection = 'general' | 'wallpaper' | 'search';
|