22 lines
997 B
TypeScript
22 lines
997 B
TypeScript
// Application-wide UI state store
|
|
// TRACES: UR-005 | DR-005, DR-009
|
|
import { writable } from 'svelte/store';
|
|
|
|
// App-wide state (root layout)
|
|
export const isInitialized = writable(false);
|
|
export const pendingSyncCount = writable(0);
|
|
export const isAndroid = writable(false);
|
|
// Shuffle/repeat/next/previous state now lives in the event-driven queue store
|
|
// ($lib/stores/queue), the single source of truth.
|
|
export const showSleepTimerModal = writable(false);
|
|
// Measured height (px) of the fixed bottom UI on Android: BottomNav stacked with
|
|
// the global mini player. Published by the root layout via ResizeObserver so the
|
|
// library list can reserve exactly that much bottom padding (no magic rem guesses).
|
|
export const bottomUiHeight = writable(0);
|
|
|
|
// Library-specific state
|
|
export const librarySearchQuery = writable("");
|
|
export const libraryShowFullPlayer = writable(false);
|
|
export const libraryShowOverflowMenu = writable(false);
|
|
export const libraryShowSleepTimerModal = writable(false);
|