Edit a widget's popup in Settings, not only in JSON

未关闭
#217 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
54/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
swift
领域
desktop

调研方向

Start with Sources/StableBar/WidgetSettings.swift and the layout block documentation in docs/create-a-widget.md; inspect how Settings currently edits widget properties and how popups are represented. Build the proposed popup block tree editor with add, remove, reorder, and block editing controls plus a live preview. It is done when a widget’s popup can be edited in Settings without JSON and the preview reflects those edits.

由索引模型根据 Issue 内容生成。

描述

enhancement P3

Problem

Settings edits a widget's content, style and behaviour, but not its popup. These need JSON, through Edit as JSON… or the command line:

  • A popup's contents (its layout blocks) and hoverLayout (docs/create-a-widget.md).
  • Click commands and menus: for a widget with them, Settings says "This widget runs a command and opens a popup. Change it with Edit as JSON in the More menu." (WidgetSettings.swift:27, :51).
  • openOnHover for shared popups under popups (docs/popups.md). Inline popups have Open its popup on hover in Settings.

Proposal

A first step: in Settings, a widget with a popup gets an editor for the popup's block tree (add, remove, reorder and set blocks) with a live preview.

Stays JSON-only for now: click commands, menus, hoverLayout, shared popups and their openOnHover.

Possible today

Yes, by editing JSON through Edit as JSON…, the command line or the configuration file (docs/popups.md).

Related

  • #103 moved widget setup out of JSON, except popups and click commands.
  • #88 added openOnHover and its toggle for inline popups.
  • #16 draws widgets and popups through layout blocks.

Checked on main 4160f7f.

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

主要语言
Swift
星标
184
派生
12
平均合并
3 小时 50 分钟
30 天内合并 PR
387

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Seb-GRAF/StableBar 的其他 Issue

查看 Seb-GRAF/StableBar 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。