diff --git a/app/scenes/Document/components/Header.js b/app/scenes/Document/components/Header.js
index 925d1f36..8dd4a454 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 = (
+
+
+ : }
+ onClick={() =>
+ ui.setTheme(resolvedTheme === "light" ? "dark" : "light")
+ }
+ neutral
+ borderOnHover
+ />
+
+
+ );
+
if (shareId) {
return (
}
- actions={canEdit ? editAction : }
+ actions={
+ <>
+ {appearanceAction}
+ {canEdit ? editAction : }
+ >
+ }
/>
);
}