This commit is contained in:
2026-02-25 18:45:56 +08:00
parent d24f1b63dc
commit 7b40aeefd6
5 changed files with 54 additions and 4 deletions

View File

@@ -6,7 +6,8 @@ const defaultTheme: ThemeSettings = {
primaryColor: '#007AFF',
backgroundColor: 'rgba(30, 30, 30, 0.7)',
glassOpacity: 0.7,
blurAmount: 20
blurAmount: 20,
videoBrightness: 0.3
}
function mergeTheme(savedTheme: Partial<ThemeSettings> | undefined): ThemeSettings {
@@ -15,7 +16,8 @@ function mergeTheme(savedTheme: Partial<ThemeSettings> | undefined): ThemeSettin
primaryColor: savedTheme.primaryColor ?? defaultTheme.primaryColor,
backgroundColor: savedTheme.backgroundColor ?? defaultTheme.backgroundColor,
glassOpacity: savedTheme.glassOpacity ?? defaultTheme.glassOpacity,
blurAmount: savedTheme.blurAmount ?? defaultTheme.blurAmount
blurAmount: savedTheme.blurAmount ?? defaultTheme.blurAmount,
videoBrightness: savedTheme.videoBrightness ?? defaultTheme.videoBrightness
}
}