mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 20:40:21 +02:00
[feat] Add a dynamic image option to the fullscreen player (#526)
* Add an option for a dynamic background image in the fullscreen player * Center the background image and fix some more bugs * More cleaning up the background image * Add option for customizable blur amount * Fix missing translation key for image blur * Fix dynamic image shifting when player is opened * Hide image blur size config if dynamic background is disabled --------- Co-authored-by: Jeff <42182408+jeffvli@users.noreply.github.com>
This commit is contained in:
@@ -6,6 +6,8 @@ import { immer } from 'zustand/middleware/immer';
|
||||
interface FullScreenPlayerState {
|
||||
activeTab: string | 'queue' | 'related' | 'lyrics';
|
||||
dynamicBackground?: boolean;
|
||||
dynamicImageBlur: number;
|
||||
dynamicIsImage?: boolean;
|
||||
expanded: boolean;
|
||||
opacity: number;
|
||||
useImageAspectRatio: boolean;
|
||||
@@ -28,6 +30,8 @@ export const useFullScreenPlayerStore = create<FullScreenPlayerSlice>()(
|
||||
},
|
||||
activeTab: 'queue',
|
||||
dynamicBackground: true,
|
||||
dynamicImageBlur: 1.5,
|
||||
dynamicIsImage: false,
|
||||
expanded: false,
|
||||
opacity: 60,
|
||||
useImageAspectRatio: false,
|
||||
|
||||
Reference in New Issue
Block a user