Add Flip filter with bool option support and calibration UI polish

- New FlipFilter with horizontal/vertical bool options (np.fliplr/flipud)
- Add bool option type to filter system (base.py validate, app.js toggle UI)
- Rearrange calibration preview: direction toggle above LED count
- Normalize direction/offset control heights, brighten offset icon

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 01:55:00 +03:00
parent a4991c884a
commit 136f6fd120
7 changed files with 136 additions and 27 deletions

View File

@@ -1173,11 +1173,14 @@ input:-webkit-autofill:focus {
display: flex;
align-items: center;
gap: 3px;
padding: 4px 8px;
height: 26px;
padding: 0 10px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 12px;
font-size: 12px;
color: rgba(255, 255, 255, 0.9);
box-sizing: border-box;
cursor: pointer;
user-select: none;
}
@@ -1499,12 +1502,15 @@ input:-webkit-autofill:focus {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
height: 26px;
padding: 0 10px;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 12px;
color: white;
font-family: inherit;
font-size: 12px;
box-sizing: border-box;
cursor: pointer;
transition: background 0.2s;
user-select: none;
@@ -1515,7 +1521,7 @@ input:-webkit-autofill:focus {
}
.direction-toggle #direction-icon {
font-size: 16px;
font-size: 14px;
}
.preview-hint {
@@ -2060,6 +2066,53 @@ input:-webkit-autofill:focus {
width: 100%;
}
.pp-filter-option-bool label {
justify-content: space-between;
gap: 8px;
align-items: center;
cursor: pointer;
padding: 4px 0;
}
.pp-filter-option-bool input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
width: 34px;
min-width: 34px;
height: 18px;
background: var(--border-color);
border-radius: 9px;
position: relative;
cursor: pointer;
transition: background 0.2s;
order: 1;
margin: 0;
}
.pp-filter-option-bool input[type="checkbox"]::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 14px;
height: 14px;
background: white;
border-radius: 50%;
transition: transform 0.2s;
}
.pp-filter-option-bool input[type="checkbox"]:checked {
background: var(--primary-color);
}
.pp-filter-option-bool input[type="checkbox"]:checked::after {
transform: translateX(16px);
}
.pp-filter-option-bool span {
order: 0;
}
.pp-add-filter-row {
display: flex;
gap: 8px;