MCPcopy
hub / github.com/stemdeckapp/stemdeck / folderColorButtonsHtml

Function folderColorButtonsHtml

static/js/catalog.js:640–651  ·  view source on GitHub ↗
(activeColor)

Source from the content-addressed store, hash-verified

638let folderEditor = null;
639
640function folderColorButtonsHtml(activeColor) {
641 return FOLDER_COLORS.map((color, index) => `
642 <button
643 class="folder-color-dot${color === activeColor ? " active" : ""}"
644 type="button"
645 data-color="${color}"
646 style="--folder-color: ${color};"
647 aria-label="Set folder color ${index + 1}"
648 aria-pressed="${color === activeColor}"
649 ></button>
650 `).join("");
651}
652
653function closeFolderEditor() {
654 folderEditor?.remove();

Callers 1

openFolderEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected