mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 08:56:41 +00:00
Rename the "overlay indicator" feature to "task widget" across the entire codebase for clearer naming. Includes file renames, config key migration, IPC event rename, and translation key updates. Migration handles old persisted data from both the `overlayIndicator` config key and the deprecated `misc.isOverlayIndicatorEnabled` field. The `taskWidget` type is made optional in GlobalConfigState to prevent Typia auto-fix from overwriting migrated values during upgrade.
19 lines
423 B
TypeScript
19 lines
423 B
TypeScript
interface TaskWidgetContentData {
|
|
title: string;
|
|
time: string;
|
|
mode: 'pomodoro' | 'focus' | 'task' | 'idle';
|
|
}
|
|
|
|
interface TaskWidgetAPI {
|
|
showMainWindow: () => void;
|
|
onUpdateContent: (callback: (data: TaskWidgetContentData) => void) => () => void;
|
|
onUpdateOpacity: (callback: (opacity: number) => void) => () => void;
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
taskWidgetAPI: TaskWidgetAPI;
|
|
}
|
|
}
|
|
|
|
export {};
|