From cbc309bc8cb4896ec1a00b2365dc43938394056a Mon Sep 17 00:00:00 2001
From: th
Date: Mon, 20 Apr 2026 12:18:47 +0200
Subject: [PATCH] 0.5.1: replace properties checkboxes with icon toggles
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
All checkboxes and radio buttons in the Properties panel are now
icon-toggle buttons:
- Polygon "Closed path" → PhPolygon button (fill weight when closed)
- Fill/Stroke transparent → PhEye / PhEyeSlash toggle next to the swatch
- Mask use → PhMaskHappy toggle
- Mask mode → segmented control with PhPlus / PhMinus (negative is red)
Shared .icon-toggle style: 26×26, panel background, accent when active,
optional .danger variant. Tests updated to click buttons instead of
checkboxes.
Co-Authored-By: Claude Opus 4.7 (1M context)
---
package.json | 2 +-
src/components/PropertiesPanel.vue | 235 ++++++++++++++++++-----------
src/devtools/tests.ts | 2 +-
src/version.ts | 2 +-
4 files changed, 149 insertions(+), 92 deletions(-)
diff --git a/package.json b/package.json
index 8ed67e2..e20d3fe 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "animatr",
"private": true,
- "version": "0.5.0",
+ "version": "0.5.1",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/src/components/PropertiesPanel.vue b/src/components/PropertiesPanel.vue
index bfc2cf3..9ae256a 100644
--- a/src/components/PropertiesPanel.vue
+++ b/src/components/PropertiesPanel.vue
@@ -1,6 +1,18 @@
|