From 09a409b494fac62b8d2f0c4dbd8d6ff5803e1b6b Mon Sep 17 00:00:00 2001 From: Alexander Krantz Date: Thu, 7 Oct 2021 18:43:41 -0700 Subject: [PATCH] feat: add changing appearance for guests (#2632) * Allow changing appearance when guest * Apply suggestions from code review Co-authored-by: Tom Moor --- app/scenes/Document/components/Header.js | 31 +++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/app/scenes/Document/components/Header.js b/app/scenes/Document/components/Header.js index 925d1f365..8dd4a4548 100644 --- a/app/scenes/Document/components/Header.js +++ b/app/scenes/Document/components/Header.js @@ -4,7 +4,9 @@ import { TableOfContentsIcon, EditIcon, PlusIcon, + MoonIcon, MoreIcon, + SunIcon, } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; @@ -70,6 +72,7 @@ function DocumentHeader({ const { t } = useTranslation(); const team = useCurrentTeam(); const { ui, policies } = useStores(); + const { resolvedTheme } = ui; const isMobile = useMobile(); const handleSave = React.useCallback(() => { @@ -125,6 +128,27 @@ function DocumentHeader({ ); + const appearanceAction = ( + + +