feat(battery): support compact charge indicators and header offset

This commit is contained in:
DCCONSTRUCTIONS
2026-11-04 18:18:33 +03:00
parent 14e6426cd5
commit d5f35e4a74
6 changed files with 25 additions and 13 deletions
+12 -1
View File
@@ -110,7 +110,18 @@ async texture completion cannot apply a hidden mode's texture over the live mode
The battery Design form separates its target selector from the settings card
with the canonical 16 px gap. Observatory indicator geometry is per battery:
width 64–320 px, height 24–96 px, radius 0–48 px. Existing documents migrate to
width 32–320 px, height 12–96 px, radius 0–48 px; a separate 0–320 px offset
moves the indicator left of the header action group. Existing documents migrate to
115 × 46 px and radius 23 px, matching the previous pill. Live and preview use
the same BatteryIndicator adapter over the canonical LevelButton; changes are
immediate, persist in battery UI JSON and participate in its existing undo.
Material inspectors use the canonical Inspector header/footer and 12 px section
rhythm, including nested active/inactive materials. The reset-to-source action
is removed. “Дублировать материал” asks for a name in a standard Window and
creates an independent custom material with all textures and SOC surfaces.
It selects the copy in the palette without assigning it to an object; creation
is undoable and obeys the existing material-count and total texture limits.
LevelButton owns compact geometry: text and padding scale together below
64 × 24 px down to 32 × 12 px, including both contrasting fill text layers.