Skip to content

[Feature Request] Support standard window mode and disable auto-close on focus loss #76

@xingchen928

Description

@xingchen928

Affected Platform

Windows

Report Type

Bug

Description

[Feature Request] Support standard window mode and disable auto-close on focus loss

中文描述 / Chinese Description

🚀 功能建议

建议为主界面增加“窗口化模式”,使其表现得像一个普通窗口,不再强行绑定托盘且失焦后不自动关闭。

🧐 问题背景

目前应用的主界面设计对生产力场景存在以下局限:

  1. 失焦自动关闭: 窗口是无边框的,且一旦点击桌面或其他软件(失去焦点),窗口就会自动消失。这导致用户无法在操作其他软件时参考应用内的数据。
  2. 多屏不友好: 窗口位置相对固定,且必须从托盘点击弹出,多显示器用户无法将其拖拽到副屏长期驻留。
  3. 交互不便: 缺乏标准窗口控制器(标题栏、移动、最小化),导致其更像是一个临时插件而非独立的生产力工具。

💡 建议方案

在设置中增加一个开关(如“窗口模式”):

  • 开启后: 提供标准窗口边框,允许移动和缩放,且失焦时不隐藏。
  • 关闭后: 维持现有的极简托盘交互模式。
    这种改动逻辑简单,只需在窗口创建时调整 frame 属性并禁用失焦隐藏事件即可。

English Description

🚀 Feature Request

I suggest adding a "Windowed Mode" to the main interface, allowing it to function as a standard, movable window that remains visible even when it loses focus.

🧐 Problem Statement

The current UI design has several limitations for power users:

  1. Auto-close on Focus Loss: The borderless window disappears immediately when clicking elsewhere. This makes it impossible to reference application data while multitasking.
  2. Multi-monitor Friction: Since the window is tied to the tray and lacks a title bar, it cannot be easily moved to a secondary monitor for persistent monitoring.
  3. Lack of Mobility: The absence of a standard window frame prevents users from dragging or positioning the app according to their desktop workflow.

💡 Proposed Solution

Add a toggle in the settings (e.g., "Windowed Mode"):

  • Enabled: The app shows a standard window frame (with title bar), allows dragging/resizing, and stays open when losing focus.
  • Disabled: Maintains the current minimalist "Quick Access" behavior from the system tray.

🛠️ Technical Suggestion

This can be achieved by setting frame: true during window initialization and disabling the logic that triggers hide() or close() on the blur event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsbugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions