mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 08:56:41 +00:00
OS behavior (transparency, native drag/resize) differs enough between platforms that syncing one shared value across devices makes no sense. Move taskWidget settings out of the synced GlobalConfigState into a localStorage-backed TaskWidgetSettingsService and a dedicated UPDATE_TASK_WIDGET_SETTINGS IPC channel. On macOS, transparent + frameless BrowserWindows do not support native edge resize or window drag (Electron docs: "Transparent windows are not resizable"). Use transparent: false on Mac and apply user-set opacity via BrowserWindow.setOpacity() so native drag/resize keep working. GlobalConfigFormSectionKey is split from GlobalConfigSectionKey so that 'taskWidget' cannot leak into updateGlobalConfigSection action payloads (which would create phantom GLOBAL_CONFIG_UPDATE_SECTION ops). No data migration: users previously configuring the widget will see defaults and reconfigure once. |
||
|---|---|---|
| .. | ||
| task-widget-api.d.ts | ||
| task-widget-preload.ts | ||
| task-widget-renderer.ts | ||
| task-widget.css | ||
| task-widget.html | ||
| task-widget.ts | ||