Skip to content

[Enhancement] Settings scene 为 EmptyView,用户无法通过系统设置入口修改偏好 #14

@ShadyUnderLight

Description

@ShadyUnderLight

问题描述

ProcessBarMonitorApp 中:

Settings {
    EmptyView()
}

占着 Settings 入口但没有实际内容。用户期望通过 macOS 系统设置(System Settings → 你的 App)来调整偏好,但现在只能通过 menu bar 内手动操作,且无法记住上次展开状态。

预期结果

Settings scene 提供可配置的偏好设置页面,与 menu bar 内选项一致或互补。

建议方案

MonitorViewModel 中已有的设置项(temperatureMode、menuBarDisplayMode、processLimit、launchAtLogin)抽取为独立 Settings View,通过 Settings scene 暴露:

Settings {
    SettingsView(viewModel: viewModel)
}

如果当前 menu bar 展开状态可以作为 settings 的一部分持久化,体验更一致。

影响模块

ux

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions