mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-31 02:58:28 +01:00
wip: design refactor
This commit is contained in:
@@ -62,8 +62,8 @@ export const itemThemeColorAtom = atom(
|
||||
const newColors = { ...currentColors, ...update };
|
||||
|
||||
// Recalculate text color if primary color changes
|
||||
if (update.primary) {
|
||||
newColors.text = calculateTextColor(update.primary);
|
||||
if (update.average) {
|
||||
newColors.text = calculateTextColor(update.average);
|
||||
}
|
||||
|
||||
set(baseThemeColorAtom, newColors);
|
||||
|
||||
Reference in New Issue
Block a user