Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): add bounce option for particles #124

Merged
merged 1 commit into from
Jan 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ui/public/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
"birthRate": "Wahrscheinlichkeit neuer Funken",
"brightness": "Helligkeit",
"brightnessVariance": "Helligkeitsabweichung",
"bounceAtCorner": "Partikel abprallen",
"channelCurrents": "LED-Strom pro Kanal (MA)",
"color1": "Farbe 1",
"color2": "Farbe 2",
Expand Down
1 change: 1 addition & 0 deletions ui/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
"birthRate": "Birth Rate",
"brightness": "Brightness",
"brightnessVariance": "Brightness Variance",
"bounceAtCorner": "Bounce Particles",
"channelCurrents": "LED Current per Channel (MA)",
"color1": "Color 1",
"color2": "Color 2",
Expand Down
12 changes: 12 additions & 0 deletions ui/src/pages/Zone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,18 @@ const Form = ({ zoneId }: FormProps): JSX.Element => {
/>
</label>

<label className="mb-6 flex flex-row justify-between">
<span className="basis-1/2 self-center">
{t('zone.bounceAtCorner')}
</span>
<div className="basis-1/2 text-right">
<Switch<FormData>
control={control}
name="animationSettings.18"
/>
</div>
</label>

<Collapsible
title={t('zone.variance')}
className="mb-6"
Expand Down