Files
AeroStart/src/types.ts
ZyphrZero a6daa5d728 feat(ui): add settings menu and mask opacity control
- Add SettingsMenu component for quick navigation between settings sections
- Add mask opacity control to adjust overlay transparency
- Optimize search suggestions with immediate response and smooth animations
- Refine component styles for more compact interface
- Fix Translation interface type definition for maskOpacity
- Unify Bilibili API path to simplify environment handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 14:45:36 +08:00

44 lines
954 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;
}
export type SettingsSection = 'general' | 'wallpaper' | 'search';