дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
Plugin API 1.21 adds optional settings schema fields: presentation (select, radio, segmented, slider, color, checkbox-list), enumOptions (label, description, icon per enum value), minimum / maximum / step, and when conditions on another setting of the page. New src/ui primitives RadioGroup, SegmentedControl, CheckboxGroup, Slider and ColorInput. Schemas that use none of them render as before; manifests admitting an older API keep ignoring JSON Schema bounds. Review changes: the fields are gated on API 1.21 (1.20 shipped in 0.1.57), and the colour swatch fill is stretched inside its button. Part of #7688. Co-authored-by: Bruno0416 <[email protected]>
Settings controls fixture (API 1.21)
A declarative plugin (no code) whose settings page uses every control of API 1.21:
density: a segmented control whose options have labels, a hint and light/dark icons;rowHeight: an integer slider shown only whiledensityiscustom(when…equals);folders: radio buttons with a hint under each option;folderColor: a#rrggbbcolour shown only for somefoldersvalues (when…in);packs: a checkbox list of a string list'senum, with an option icon;opacity: a number slider with a fractionalstep;arrows: an ordinary drop-down that showsenumOptionslabels instead of the values.
locales/zh-CN.json translates the titles and option labels. Install or link this
directory with openidea-plugin link and open Settings › Plugins › Settings Controls.