add theme color picker (#1598)

This commit is contained in:
Athou
2025-04-10 10:39:14 +02:00
parent 7541251344
commit 915506527a
40 changed files with 373 additions and 176 deletions

View File

@@ -9,6 +9,7 @@ import {
changeLanguage,
changeMarkAllAsReadConfirmation,
changeMobileFooter,
changePrimaryColor,
changeReadingMode,
changeReadingOrder,
changeScrollMarks,
@@ -125,6 +126,10 @@ export const userSlice = createSlice({
if (!state.settings) return
state.settings.unreadCountFavicon = action.meta.arg
})
builder.addCase(changePrimaryColor.pending, (state, action) => {
if (!state.settings) return
state.settings.primaryColor = action.meta.arg
})
builder.addCase(changeSharingSetting.pending, (state, action) => {
if (!state.settings) return
state.settings.sharingSettings[action.meta.arg.site] = action.meta.arg.value
@@ -144,6 +149,7 @@ export const userSlice = createSlice({
changeMobileFooter.fulfilled,
changeUnreadCountTitle.fulfilled,
changeUnreadCountFavicon.fulfilled,
changePrimaryColor.fulfilled,
changeSharingSetting.fulfilled
),
() => {