mirror of
https://github.com/handsomezhuzhu/AeroStart.git
synced 2026-02-20 12:00:15 +00:00
- 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>
44 lines
954 B
TypeScript
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';
|