add sidebar panel lyrics

This commit is contained in:
jeffvli
2025-11-29 17:26:28 -08:00
parent 7f95c520b2
commit 96e9d54f4e
6 changed files with 107 additions and 46 deletions
+23 -21
View File
@@ -285,6 +285,7 @@ const LyricsSettingsSchema = z.object({
gap: z.number(),
gapUnsync: z.number(),
preferLocalLyrics: z.boolean(),
showLyricsInSidebar: z.boolean(),
showMatch: z.boolean(),
showProvider: z.boolean(),
sources: z.array(z.nativeEnum(LyricSource)),
@@ -728,7 +729,7 @@ const initialState: SettingsState = {
}),
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'compact',
},
@@ -753,8 +754,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'default',
@@ -801,8 +802,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'default',
@@ -838,8 +839,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'default',
@@ -875,8 +876,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'default',
@@ -919,8 +920,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'compact',
@@ -951,8 +952,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'default',
@@ -978,8 +979,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'default',
@@ -1005,8 +1006,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'default',
@@ -1050,8 +1051,8 @@ const initialState: SettingsState = {
pinned: column.pinned,
width: column.width,
})),
enableAlternateRowColors: true,
enableHorizontalBorders: true,
enableAlternateRowColors: false,
enableHorizontalBorders: false,
enableRowHoverHighlight: true,
enableVerticalBorders: false,
size: 'default',
@@ -1092,16 +1093,17 @@ const initialState: SettingsState = {
delayMs: 0,
enableAutoTranslation: false,
enableNeteaseTranslation: false,
fetch: false,
fetch: true,
follow: true,
fontSize: 24,
fontSizeUnsync: 24,
gap: 24,
gapUnsync: 24,
preferLocalLyrics: true,
showLyricsInSidebar: true,
showMatch: true,
showProvider: true,
sources: [LyricSource.NETEASE, LyricSource.LRCLIB],
sources: [LyricSource.NETEASE],
translationApiKey: '',
translationApiProvider: '',
translationTargetLanguage: 'en',