mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
various performance refactors
This commit is contained in:
@@ -2421,8 +2421,26 @@ export const usePlayButtonBehavior = () =>
|
||||
|
||||
export const useWindowSettings = () => useSettingsStore((state) => state.window, shallow);
|
||||
|
||||
export const useWindowBarStyle = () =>
|
||||
useSettingsStore((state) => state.window.windowBarStyle, shallow);
|
||||
|
||||
export const useHotkeySettings = () => useSettingsStore((state) => state.hotkeys, shallow);
|
||||
|
||||
export const useHotkeyBindings = () => useSettingsStore((state) => state.hotkeys.bindings, shallow);
|
||||
|
||||
export const useLayoutHotkeyBindings = () =>
|
||||
useSettingsStore(
|
||||
(state) => ({
|
||||
browserBack: state.hotkeys.bindings.browserBack,
|
||||
browserForward: state.hotkeys.bindings.browserForward,
|
||||
globalSearch: state.hotkeys.bindings.globalSearch,
|
||||
navigateHome: state.hotkeys.bindings.navigateHome,
|
||||
zoomIn: state.hotkeys.bindings.zoomIn,
|
||||
zoomOut: state.hotkeys.bindings.zoomOut,
|
||||
}),
|
||||
shallow,
|
||||
);
|
||||
|
||||
export const useMpvSettings = () =>
|
||||
useSettingsStore((state) => state.playback.mpvProperties, shallow);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user