Calendar app shows day-of-the-month in its icon on the launcher and sidebar

This commit is contained in:
James Babcock committed 2026-08-30 15:16:49 -07:00
1 parent 061b2eb215
commit cd25ec60f1
4 files changed
+61

No files matched your search

+3
View File
@@ -1,6 +1,8 @@
import { ensureCalendarPermission, hasCalendarPermission } from "../../g2/android-permissions";
import { invalidateCalendarCache } from "../../native/calendar";
import { makeImageWindowIcon, windowIcon } from "../../ui/shell/chrome-layer";
import { CalendarLayer } from "./calendar";
import { renderCalendarDateIcon } from "./calendar-icon";
import {
createInProcessWindow,
YieldAtRootLayer,
@@ -39,6 +41,7 @@ export function createCalendarAppWindow(options: InProcessAppOptions): InProcess
title: "Calendar",
iconLetter: "Ca",
icon: "calendar",
drawIcon: makeImageWindowIcon(renderCalendarDateIcon, windowIcon("calendar", "Ca")),
closeable: true,
actions: options.actions,
baseLayer: new YieldAtRootLayer(new CalendarLayer(requestPermission)),