client: add a launcher for zen mode

This commit is contained in:
Adorian Doran 2025-11-03 17:52:08 +02:00
parent fbb27b512e
commit d650b801e6
3 changed files with 12 additions and 2 deletions

View File

@ -331,6 +331,7 @@
"calendar-title": "Calendar",
"recent-changes-title": "Recent Changes",
"bookmarks-title": "Bookmarks",
"zen-mode": "Zen Mode",
"open-today-journal-note-title": "Open Today's Journal Note",
"quick-search-title": "Quick Search",
"protected-session-title": "Protected Session",

View File

@ -47,6 +47,13 @@ export default function buildLaunchBarConfig() {
{ id: "_lbBackInHistory", ...sharedLaunchers.backInHistory },
{ id: "_lbForwardInHistory", ...sharedLaunchers.forwardInHistory },
{ id: "_lbBackendLog", title: t("hidden-subtree.backend-log-title"), type: "launcher", targetNoteId: "_backendLog", icon: "bx bx-terminal" },
{
id: "_zenMode",
title: t("hidden-subtree.zen-mode"),
type: "launcher",
command: "toggleZenMode",
icon: "bx bxs-yin-yang"
}
];
const desktopVisibleLaunchers: HiddenSubtreeItem[] = [

View File

@ -6,7 +6,8 @@ enum Command {
createNoteIntoInbox,
showRecentChanges,
showOptions,
createAiChat
createAiChat,
toggleZenMode
}
export interface HiddenSubtreeAttribute {
@ -41,7 +42,8 @@ export interface HiddenSubtreeItem {
| "protectedSession"
| "calendar"
| "quickSearch"
| "aiChatLauncher";
| "aiChatLauncher"
| "toggleZenMode";
command?: keyof typeof Command;
/**
* If set to true, then branches will be enforced to be in the correct place.