mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 15:25:46 +00:00
introducing floating bar with toggle
This commit is contained in:
@@ -26,6 +26,8 @@ interface ThemeState {
|
||||
setShowRemainingTime: (v: boolean) => void;
|
||||
expandReplayGain: boolean;
|
||||
setExpandReplayGain: (v: boolean) => void;
|
||||
floatingPlayerBar: boolean;
|
||||
setFloatingPlayerBar: (v: boolean) => void;
|
||||
}
|
||||
|
||||
export function getScheduledTheme(state: Pick<ThemeState, 'enableThemeScheduler' | 'theme' | 'themeDay' | 'themeNight' | 'timeDayStart' | 'timeNightStart'>): string {
|
||||
@@ -67,6 +69,8 @@ export const useThemeStore = create<ThemeState>()(
|
||||
setShowRemainingTime: (v) => set({ showRemainingTime: v }),
|
||||
expandReplayGain: false,
|
||||
setExpandReplayGain: (v) => set({ expandReplayGain: v }),
|
||||
floatingPlayerBar: false,
|
||||
setFloatingPlayerBar: (v) => set({ floatingPlayerBar: v }),
|
||||
}),
|
||||
{
|
||||
name: 'psysonic_theme',
|
||||
|
||||
Reference in New Issue
Block a user