diff --git a/src/public/app/widgets/note_list.ts b/src/public/app/widgets/note_list.ts index 9306b6ca9..73ebb358d 100644 --- a/src/public/app/widgets/note_list.ts +++ b/src/public/app/widgets/note_list.ts @@ -1,7 +1,7 @@ import NoteContextAwareWidget from "./note_context_aware_widget.js"; import NoteListRenderer from "../services/note_list_renderer.js"; import type FNote from "../entities/fnote.js"; -import type { EventData } from "../components/app_context.js"; +import type { CommandListener, CommandListenerData, EventData } from "../components/app_context.js"; import type ViewMode from "./view_widgets/view_mode.js"; const TPL = /*html*/` @@ -127,4 +127,11 @@ export default class NoteListWidget extends NoteContextAwareWidget { this.checkRenderStatus(); } } + + buildTouchBarCommand(data: CommandListenerData<"buildTouchBar">) { + if (this.viewMode && "buildTouchBarCommand" in this.viewMode) { + return (this.viewMode as CommandListener<"buildTouchBar">).buildTouchBarCommand(data); + } + } + } diff --git a/src/public/app/widgets/view_widgets/calendar_view.ts b/src/public/app/widgets/view_widgets/calendar_view.ts index 22689af8c..83c12cc24 100644 --- a/src/public/app/widgets/view_widgets/calendar_view.ts +++ b/src/public/app/widgets/view_widgets/calendar_view.ts @@ -7,12 +7,14 @@ import { t } from "../../services/i18n.js"; import options from "../../services/options.js"; import dialogService from "../../services/dialog.js"; import attributes from "../../services/attributes.js"; -import type { EventData } from "../../components/app_context.js"; +import type { CommandListenerData, EventData } from "../../components/app_context.js"; import utils from "../../services/utils.js"; import date_notes from "../../services/date_notes.js"; import appContext from "../../components/app_context.js"; import type { EventImpl } from "@fullcalendar/core/internal"; import debounce, { type DebouncedFunction } from "debounce"; +import type { TouchBarItem } from "../touch_bar.js"; +import type { SegmentedControlSegment } from "electron"; const TPL = /*html*/`