From 439d241023114e7f156887d3d9ee783f24a3979b Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <thomasfkjorna@gmail.com>
Date: Sat, 17 Jul 2021 16:09:53 +0200
Subject: added perma labels

---
 app/components/tweaks/tweaks.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

(limited to 'app/components/tweaks/tweaks.tsx')

diff --git a/app/components/tweaks/tweaks.tsx b/app/components/tweaks/tweaks.tsx
index 2a2e3d3..e235ad4 100644
--- a/app/components/tweaks/tweaks.tsx
+++ b/app/components/tweaks/tweaks.tsx
@@ -109,6 +109,18 @@ export const Tweaks = observer(function Tweaks(props: TweaksProps): JSX.Element
                         onValueChange={(value) => { setPhysics({ ...physics, particleWidth: value }) }}
                         value={physics.particleWidth}
                         step={.1} />
+                    <Text preset="fieldLabel" text="Labels" />
+                    <Switch style={{ width: "5", height: 20, marginVertical: 10 }}
+                        value={physics.labels}
+                        onValueChange={() => { setPhysics({ ...physics, labels: !physics.labels }) }}
+                    />
+                    <Text preset="fieldLabel" text={"Scale when labels become visible: " + physics.labelScale} />
+                    <Slider style={{ height: 40, width: "90%" }}
+                        minimumValue={0.1}
+                        maximumValue={5}
+                        onValueChange={(value) => { setPhysics({ ...physics, labelScale: value }) }}
+                        value={physics.labelScale}
+                        step={.1} />
                 </View>,
         },
         {
-- 
cgit v1.2.3

