diff --git a/manager_dashboard/src/components/UserMenuButton.jsx b/manager_dashboard/src/components/UserMenuButton.jsx
index 22f6125..393ff6a 100644
--- a/manager_dashboard/src/components/UserMenuButton.jsx
+++ b/manager_dashboard/src/components/UserMenuButton.jsx
@@ -1,12 +1,14 @@
import { useState, useEffect, useRef } from 'react'
-import { ChevronDown, User, LogOut, Languages, Check } from 'lucide-react'
+import { ChevronDown, User, LogOut, Languages, Check, Monitor, Moon, Palette, Sun } from 'lucide-react'
import toast from 'react-hot-toast'
import { useAccess } from '@xenia/access'
+import { PALETTES, STYLES, THEMES, applyLook, getStoredLook } from '@xenia/ui'
import { LANGUAGE_NAMES, setUserLanguage, useLanguage, useTranslation } from '@xenia/i18n'
import client from '../api/client'
/**
- * The profile menu (plan step 2.6a): edit profile, language, sign out.
+ * The profile menu (plan step 2.6a): edit profile, language, the look (6.15: light / dark /
+ * system, the palette, the style; saved on this device, applied at once), sign out.
* The language changes the screen at once, is saved to the user's profile
* (PATCH /api/auth/me) and then the platform bootstrap is reloaded, so it also
* applies on the next login and in the other apps (D-12).
@@ -16,6 +18,8 @@ export default function UserMenuButton({ displayName, onEditProfile, onSignOut }
const { language, languages } = useLanguage()
const { refresh } = useAccess()
const [open, setOpen] = useState(false)
+ const [look, setLook] = useState(getStoredLook)
+ const pickLook = change => setLook(applyLook({ ...look, ...change }, { save: true }))
const ref = useRef(null)
useEffect(() => {
@@ -60,7 +64,7 @@ export default function UserMenuButton({ displayName, onEditProfile, onSignOut }
{open && (
-
+
))}
+
+
+
+ {t('profile.look')}
+
+
pickLook({ mode })}
+ name={m => t(`profile.modes.${m}`)} icon={m => ({ light: Sun, dark: Moon, system: Monitor })[m]} testId="look-mode" />
+ pickLook({ palette })} name={p => t(`profile.palettes.${p}`)} testId="look-palette" />
+ pickLook({ style })} name={x => t(`profile.styles.${x}`)} testId="look-style" />
+