useAudioThemeCommon Composable
File: src/composables/useAudioThemeCommon.ts
Overview
Exports
- useAudioThemeCommon - function export
Functions
useAudioThemeCommon()
No description available.
Parameters: None
Returns: void
/**
* Shared composable for common audio theme functionality
* Used by AudioThemePicker and AudioThemeManager to avoid code duplication
*/
export function useAudioThemeCommon()getThemeIcon(themeId: string)
No description available.
Parameters:
themeId: string
Returns: string
const getThemeIcon = (themeId: string): string =>selectTheme(themeId: string)
No description available.
Parameters:
themeId: string
Returns: Promise<boolean>
const selectTheme = async (themeId: string): Promise<boolean> =>testCurrentTheme()
No description available.
Parameters: None
Returns: Promise<void>
const testCurrentTheme = async (): Promise<void> =>testTheme(themeId: string)
No description available.
Parameters:
themeId: string
Returns: Promise<void>
const testTheme = async (themeId: string): Promise<void> =>onVolumeChange()
No description available.
Parameters: None
Returns: void
const onVolumeChange = (): void =>toggleMute()
No description available.
Parameters: None
Returns: void
const toggleMute = (): void =>setVolumePreset(value: number)
No description available.
Parameters:
value: number
Returns: void
const setVolumePreset = (value: number): void =>isVolumePresetActive(value: number)
No description available.
Parameters:
value: number
Returns: boolean
const isVolumePresetActive = (value: number): boolean =>isThemeLoading(themeId?: string)
No description available.
Parameters:
themeId?: string
Returns: boolean
const isThemeLoading = (themeId?: string): boolean =>clearCache()
No description available.
Parameters: None
Returns: void
const clearCache = (): void =>preloadTheme(themeId: string)
No description available.
Parameters:
themeId: string
Returns: Promise<void>
const preloadTheme = async (themeId: string): Promise<void> =>exportThemeSettings()
No description available.
Parameters: None
Returns: void
const exportThemeSettings = (): void =>importThemeSettings()
No description available.
Parameters: None
Returns: void
const importThemeSettings = (): void =>resetToDefaults()
No description available.
Parameters: None
Returns: Promise<void>
const resetToDefaults = async (): Promise<void> =>initialize()
No description available.
Parameters: None
Returns: Promise<void>
const initialize = async (): Promise<void> =>Source Code Insights
File Size: 8964 characters Lines of Code: 343 Imports: 4
Usage Example
import { useAudioThemeCommon } from '@/composables/useAudioThemeCommon'
// Example usage
useAudioThemeCommon()This documentation was automatically generated from the source code.
