From e530565430622f7d1e824d27b6dc26d95024eb6f Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sat, 3 Oct 2026 18:42:20 +0900 Subject: public/bluebey-studio: 戻す/やり直すをタブの上へ、口パクをうごきへ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 元に戻す・やり直すをパネル上部の常時表示バー(アイコン)に移し、どのタブでも使えるようにした。同じバーに「すべてをランダムに」(スタイル・ポーズ・顔・テーマ)を追加。 「口パク」を顔タブから「うごき」の中へ統合した。 「顔をランダムに」が口の高さ・傾き・はば・頭の模様も変えるようにした。 --- public/bluebey-studio/src/ui.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'public/bluebey-studio/src/ui.js') diff --git a/public/bluebey-studio/src/ui.js b/public/bluebey-studio/src/ui.js index 46c5adb..b4c7d24 100644 --- a/public/bluebey-studio/src/ui.js +++ b/public/bluebey-studio/src/ui.js @@ -94,6 +94,17 @@ function secIcon(d) { return svg; } +/** + * A standalone 24x24 stroke icon (the same drawing as a tab's), for a plain + * button that has no label of its own. + */ +export function icon(d, size = 18) { + const svg = tabIcon(d); + svg.setAttribute('width', String(size)); + svg.setAttribute('height', String(size)); + return svg; +} + /** * Tabbed container: returns the per-tab panels to fill in. When a definition * carries an `icon` (an SVG path `d`) the tab shows only that icon, and the -- cgit v1.3.1