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

Aperta
#217 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
swift
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).

Lingua principale
Swift
Stelle
184
Fork
12
Merge medio
3h 50m
PR unite (30g)
387

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Seb-GRAF/StableBar

Tutte le issue di Seb-GRAF/StableBar

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.