← Commit history

toolbar buttons: add clean inline-SVG icons (pivot/ground/shadows/animate/assembled/exploded/fullscreen), no emoji

John Lauer ·279f08a598 ·3mo ago ·parent 19144a8
3 files changed +31−6
package.json+1−1
@@ -2,7 +2,7 @@   "slug": "bq25792-charger",   "title": "BQ25792 Charger",   "type": "component",-  "version": "0.1.58",+  "version": "0.1.59",   "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",   "tags": [     "hardware"
page.json+10−3
@@ -4,9 +4,16 @@   "slug": "bq25792-charger",   "title": "BQ25792 Charger",   "brief": "Buck-boost 1S-4S battery charger board (TI BQ25792) with 14 Adom machine pins, by Adonis",-  "version": "0.1.58",+  "version": "0.1.59",   "tags": [-    "hardware"+    "adom",+    "adom-modular",+    "component",+    "charger",+    "battery",+    "bq25792",+    "power",+    "usb-c"   ],   "license": "proprietary",   "component": {@@ -49,7 +56,7 @@     "email": "[email protected]"   },   "visibility": "public",-  "description": "BQ25792 Charger - buck-boost 1S-4S battery charger board by Adonis, with real 3D copper traces and measured stackup.",+  "description": "BQ25792 Charger - a buck-boost 1S-4S battery charger board (Texas Instruments BQ25792) designed by Adonis in Fusion 360, with 14 Adom machine pins for the modular stack. Interactive colored 3D model, schematic and layout views.",   "dependencies": {},   "files": [     "README.md",
readme.html+20−2
@@ -37,8 +37,9 @@   #floaty { position:absolute; top:14px; left:14px; z-index:30; display:flex; gap:6px;     background:rgba(13,17,23,0.55); backdrop-filter:blur(8px); border:1px solid rgba(48,54,61,0.8);     border-radius:10px; padding:6px; }-  .fbtn { font-size:12.5px; padding:6px 12px; border-radius:7px; border:1px solid transparent;-    background:transparent; color:#c9d1d9; cursor:pointer; }+  .fbtn { font-size:12.5px; padding:6px 11px; border-radius:7px; border:1px solid transparent;+    background:transparent; color:#c9d1d9; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }+  .fbtn svg { width:15px; height:15px; flex:none; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }   .fbtn:hover { background:rgba(48,54,61,0.7); }   .fbtn.active { background:#0b3d33; border-color:#00b8b1; color:#5ff5e8; }   #vstatus { position:absolute; right:14px; bottom:10px; z-index:30; font-size:12px; color:#8b949e;@@ -153,6 +154,23 @@ exported bodies + design rules.</p>   const lpOrder=document.getElementById("lp-order");   const scrub=document.getElementById("scrub");   const set=(t)=>{ if(status) status.textContent=t; };+  // Clean inline-SVG icons (no emoji) on each toolbar button, keeping the text label.+  (function(){+    const I={+      "btn-pivot":'<circle cx="8" cy="8" r="3.2"/><path d="M8 1v2.5M8 12.5V15M1 8h2.5M12.5 8H15"/>',+      "btn-ground":'<path d="M2 11h12"/><path d="M5.5 11l1.2-4h2.6l1.2 4"/><ellipse cx="8" cy="13" rx="6" ry="1.4"/>',+      "btn-shadows":'<circle cx="6.5" cy="6.5" r="3.3"/><path d="M6.5 1.2v1M6.5 11.8v1M1.2 6.5h1M10.8 6.5h1M2.9 2.9l.7.7M9.4 9.4l.7.7M10.1 2.9l-.7.7"/><path d="M8.5 12.5h6"/>',+      "btn-anim":'<path d="M2 4h12M2 8h12M2 12h12"/><path d="M11.5 1.5L14 4l-2.5 2.5"/>',+      "btn-assembled":'<rect x="3" y="6" width="10" height="1.6"/><rect x="3" y="9" width="10" height="1.6"/><rect x="3" y="12" width="10" height="1.6"/>',+      "btn-exploded":'<rect x="3" y="2.5" width="10" height="1.6"/><rect x="3" y="7.2" width="10" height="1.6"/><rect x="3" y="11.9" width="10" height="1.6"/><path d="M8 5.2v1M8 9.9v1" stroke-dasharray="1 1"/>',+      "btn-fs":'<path d="M2 5.5V2h3.5M14 5.5V2h-3.5M2 10.5V14h3.5M14 10.5V14h-3.5"/>'+    };+    Object.keys(I).forEach(function(id){+      const b=document.getElementById(id); if(!b) return;+      const label=b.textContent.trim();+      b.innerHTML='<svg viewBox="0 0 16 16" aria-hidden="true">'+I[id]+'</svg><span>'+label+'</span>';+    });+  })();   const R="/blob/component/bq25792-charger/";   const mm=1e-3, STEP=5*mm;