apps: heart: Use theme colours for text labels
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
71069e0170
commit
93cd03219e
|
@ -23,6 +23,7 @@ class HeartApp():
|
||||||
# take long enough it is not needed
|
# take long enough it is not needed
|
||||||
draw = wasp.watch.drawable
|
draw = wasp.watch.drawable
|
||||||
draw.fill()
|
draw.fill()
|
||||||
|
draw.set_color(wasp.system.theme('bright'))
|
||||||
draw.string('PPG graph', 0, 6, width=240)
|
draw.string('PPG graph', 0, 6, width=240)
|
||||||
|
|
||||||
wasp.system.request_tick(1000 // 8)
|
wasp.system.request_tick(1000 // 8)
|
||||||
|
@ -41,6 +42,7 @@ class HeartApp():
|
||||||
spl = self._hrdata.preprocess(wasp.watch.hrs.read_hrs())
|
spl = self._hrdata.preprocess(wasp.watch.hrs.read_hrs())
|
||||||
|
|
||||||
if len(self._hrdata.data) >= 240:
|
if len(self._hrdata.data) >= 240:
|
||||||
|
draw.set_color(wasp.system.theme('bright'))
|
||||||
draw.string('{} bpm'.format(self._hrdata.get_heart_rate()),
|
draw.string('{} bpm'.format(self._hrdata.get_heart_rate()),
|
||||||
0, 6, width=240)
|
0, 6, width=240)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue