summaryrefslogtreecommitdiff
path: root/wasp/apps
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-01-03 14:46:47 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-01-03 14:46:47 (GMT)
commit93cd03219e1c17a58a52f80a69bd6fb5b977d10c (patch)
treed1f70cb7f36c448d2c7266e41ea37762e943ec38 /wasp/apps
parent71069e0170d22e60125d149630416e9dab7042a5 (diff)
apps: heart: Use theme colours for text labels
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/apps')
-rw-r--r--wasp/apps/heart.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wasp/apps/heart.py b/wasp/apps/heart.py
index b465cb4..45b3a69 100644
--- a/wasp/apps/heart.py
+++ b/wasp/apps/heart.py
@@ -23,6 +23,7 @@ class HeartApp():
# take long enough it is not needed
draw = wasp.watch.drawable
draw.fill()
+ draw.set_color(wasp.system.theme('bright'))
draw.string('PPG graph', 0, 6, width=240)
wasp.system.request_tick(1000 // 8)
@@ -41,6 +42,7 @@ class HeartApp():
spl = self._hrdata.preprocess(wasp.watch.hrs.read_hrs())
if len(self._hrdata.data) >= 240:
+ draw.set_color(wasp.system.theme('bright'))
draw.string('{} bpm'.format(self._hrdata.get_heart_rate()),
0, 6, width=240)